diff options
Diffstat (limited to 'include/poll.h')
| -rw-r--r-- | include/poll.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/poll.h b/include/poll.h index 05228b8..d00d7c1 100644 --- a/include/poll.h +++ b/include/poll.h | |||
| @@ -11,8 +11,7 @@ extern "C" { | |||
| 11 | 11 | ||
| 12 | #undef poll | 12 | #undef poll |
| 13 | 13 | ||
| 14 | extern int __poll_orig(struct pollfd *, nfds_t, int) | 14 | __typeof__(poll) __poll_orig __asm__(__USER_LABEL_PREFIX__ "poll"); |
| 15 | __asm__(__USER_LABEL_PREFIX__ "poll"); | ||
| 16 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) | 15 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 17 | int poll(struct pollfd *fds, nfds_t nfds, int timeout) | 16 | int poll(struct pollfd *fds, nfds_t nfds, int timeout) |
| 18 | { | 17 | { |
| @@ -25,8 +24,7 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout) | |||
| 25 | 24 | ||
| 26 | #ifdef _GNU_SOURCE | 25 | #ifdef _GNU_SOURCE |
| 27 | #undef ppoll | 26 | #undef ppoll |
| 28 | extern int __ppoll_orig(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *) | 27 | __typeof__(ppoll) __ppoll_orig __asm__(__USER_LABEL_PREFIX__ "ppoll"); |
| 29 | __asm__(__USER_LABEL_PREFIX__ "ppoll"); | ||
| 30 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) | 28 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 31 | int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *mask) | 29 | int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *mask) |
| 32 | { | 30 | { |
