diff options
Diffstat (limited to 'lib/libc/poll')
| -rw-r--r-- | lib/libc/poll/poll.c | 6 | ||||
| -rw-r--r-- | lib/libc/poll/ppoll.c | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lib/libc/poll/poll.c b/lib/libc/poll/poll.c index 4ff90aa6..24d91db6 100644 --- a/lib/libc/poll/poll.c +++ b/lib/libc/poll/poll.c @@ -1,5 +1,7 @@ -#include <poll.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_poll + +#include <poll.h> // for nfds_t, poll, pollfd +#include <syscall.h> // for __syscall_3, syscall int poll(struct pollfd fds[], nfds_t nfds, int timeout) { diff --git a/lib/libc/poll/ppoll.c b/lib/libc/poll/ppoll.c index a5ab9d5e..923784da 100644 --- a/lib/libc/poll/ppoll.c +++ b/lib/libc/poll/ppoll.c @@ -1,5 +1,10 @@ -#include <poll.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_ppoll + +#include <poll.h> // for nfds_t, pollfd, ppoll +#include <signal.h> // for sigset_t +#include <syscall.h> // for __syscall_5, syscall + +struct timespec; int ppoll(struct pollfd fds[], nfds_t nfds, const struct timespec *restrict timeout, |
