X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fpoll.h;h=f0e68b2f6b7bee1ce2eb73012dc3327aa2354d3b;hp=36ef7fee5892b401cd932d2b3248b0bab16d34a4;hb=e9e2b66e687bc0b4d07305a2b288ed8ff4ae5b4b;hpb=3f62f76cab46fbd28248ed251a88278c6ea1be3a diff --git a/include/poll.h b/include/poll.h index 36ef7fee..f0e68b2f 100644 --- a/include/poll.h +++ b/include/poll.h @@ -5,6 +5,8 @@ extern "C" { #endif +#include + #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