X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fpoll.h;fp=include%2Fpoll.h;h=ace3f3aa05026691db36e58567b3c3aa85c24166;hb=141138c41b5b1cbb74c61690c9b6dbacce4e1983;hp=36ef7fee5892b401cd932d2b3248b0bab16d34a4;hpb=3d939be2e3bcd4bfaf5cba27c9122a77a9c67021;p=musl diff --git a/include/poll.h b/include/poll.h index 36ef7fee..ace3f3aa 100644 --- a/include/poll.h +++ b/include/poll.h @@ -5,6 +5,8 @@ extern "C" { #endif +#incluce + #define POLLIN 0x001 #define POLLPRI 0x002 #define POLLOUT 0x004 @@ -28,6 +30,14 @@ struct pollfd int poll (struct pollfd *, nfds_t, int); +#ifdef _GNU_SOURCE +#define __NEED_time_t +#define __NEED_struct_timespec +#define __NEED_sigset_t +#include +int ppoll(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *); +#endif + #ifdef __cplusplus } #endif