diff options
Diffstat (limited to 'include/sys')
| -rw-r--r-- | include/sys/select.h | 6 | ||||
| -rw-r--r-- | include/sys/socket.h | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/include/sys/select.h b/include/sys/select.h index 50bdb6a..9e56450 100644 --- a/include/sys/select.h +++ b/include/sys/select.h | |||
| @@ -5,9 +5,7 @@ | |||
| 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 | #ifdef __cplusplus | 8 | #ifndef __cplusplus |
| 9 | extern "C" { | ||
| 10 | #endif | ||
| 11 | 9 | ||
| 12 | static inline __attribute__ ((always_inline)) | 10 | static inline __attribute__ ((always_inline)) |
| 13 | int | 11 | int |
| @@ -36,8 +34,6 @@ __fortify_FD_SET(int fd, fd_set *set) | |||
| 36 | #undef FD_SET | 34 | #undef FD_SET |
| 37 | #define FD_SET(fd, set) __fortify_FD_SET(fd, set) | 35 | #define FD_SET(fd, set) __fortify_FD_SET(fd, set) |
| 38 | 36 | ||
| 39 | #ifdef __cplusplus | ||
| 40 | } | ||
| 41 | #endif | 37 | #endif |
| 42 | 38 | ||
| 43 | #endif | 39 | #endif |
diff --git a/include/sys/socket.h b/include/sys/socket.h index fc7381a..02ff2ab 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h | |||
| @@ -5,9 +5,7 @@ | |||
| 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 | #ifdef __cplusplus | 8 | #ifndef __cplusplus |
| 9 | extern "C" { | ||
| 10 | #endif | ||
| 11 | 9 | ||
| 12 | static inline __attribute__ ((always_inline)) | 10 | static inline __attribute__ ((always_inline)) |
| 13 | ssize_t | 11 | ssize_t |
| @@ -64,8 +62,6 @@ __fortify_sendto(int sockfd, const void *buf, size_t n, int flags, | |||
| 64 | #undef sendto | 62 | #undef sendto |
| 65 | #define sendto(sockfd, buf, n, flags, sa, salen) __fortify_sendto(sockfd, buf, n, flags, sa, salen) | 63 | #define sendto(sockfd, buf, n, flags, sa, salen) __fortify_sendto(sockfd, buf, n, flags, sa, salen) |
| 66 | 64 | ||
| 67 | #ifdef __cplusplus | ||
| 68 | } | ||
| 69 | #endif | 65 | #endif |
| 70 | 66 | ||
| 71 | #endif | 67 | #endif |
