Guard as GNU extension.
Reorganize a bit.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
extern int ppoll (struct pollfd *__fds, nfds_t __nfds,
__const struct timespec *__timeout,
__const __sigset_t *__ss);
-libc_hidden_proto(ppoll)
#endif
__END_DECLS
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#include <signal.h>
#include <sys/syscall.h>
-#include <sys/poll.h>
-#define __need_NULL
-#include <stddef.h>
-#if defined __NR_ppoll && defined __UCLIBC_LINUX_SPECIFIC__
+#if defined __NR_ppoll && defined __UCLIBC_LINUX_SPECIFIC__ && defined __USE_GNU
+# define __need_NULL
+# include <stddef.h>
+# include <signal.h>
+# include <sys/poll.h>
# ifdef __UCLIBC_HAS_THREADS_NATIVE__
# include <sysdep-cancel.h>
# else
return result;
# endif
}
-libc_hidden_def(ppoll)
#endif