diff options
Diffstat (limited to 'include/unistd.h')
| -rw-r--r-- | include/unistd.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h index aa4ddff..0e5119e 100644 --- a/include/unistd.h +++ b/include/unistd.h | |||
| @@ -5,7 +5,10 @@ | |||
| 5 | 5 | ||
| 6 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 | 6 | #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 |
| 7 | 7 | ||
| 8 | #ifndef __cplusplus | 8 | #ifdef __cplusplus |
| 9 | extern "C" { | ||
| 10 | #endif | ||
| 11 | |||
| 9 | #undef confstr | 12 | #undef confstr |
| 10 | #undef getcwd | 13 | #undef getcwd |
| 11 | #undef getgroups | 14 | #undef getgroups |
| @@ -165,6 +168,8 @@ ssize_t write(int fd, const void *buf, size_t n) | |||
| 165 | return __write_orig(fd, buf, n); | 168 | return __write_orig(fd, buf, n); |
| 166 | } | 169 | } |
| 167 | 170 | ||
| 171 | #ifdef __cplusplus | ||
| 172 | } | ||
| 168 | #endif | 173 | #endif |
| 169 | 174 | ||
| 170 | #endif | 175 | #endif |
