diff options
Diffstat (limited to 'include/poll.h')
| -rw-r--r-- | include/poll.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/poll.h b/include/poll.h index 93976dd..6469acb 100644 --- a/include/poll.h +++ b/include/poll.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 poll | 12 | #undef poll |
| 10 | 13 | ||
| 11 | extern int __poll_orig(struct pollfd *, nfds_t, int) | 14 | extern int __poll_orig(struct pollfd *, nfds_t, int) |
| @@ -35,6 +38,8 @@ int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const | |||
| 35 | } | 38 | } |
| 36 | #endif | 39 | #endif |
| 37 | 40 | ||
| 41 | #ifdef __cplusplus | ||
| 42 | } | ||
| 38 | #endif | 43 | #endif |
| 39 | 44 | ||
| 40 | #endif | 45 | #endif |
