diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-16 01:44:12 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:38 +0200 |
commit | 06419c7f9c4600bfcdda7ac631870d5442908d0f (patch) | |
tree | f0ea30ea7c75ddfd2b62240a49bd664dceaa6a2d /libc/sysdeps/linux/common/ppoll.c | |
parent | cef1f9517c319d86b4b426ecc14a10d0fa5494c7 (diff) |
ppoll: no need for hidden version
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>
Diffstat (limited to 'libc/sysdeps/linux/common/ppoll.c')
-rw-r--r-- | libc/sysdeps/linux/common/ppoll.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/ppoll.c b/libc/sysdeps/linux/common/ppoll.c index 09b2b1539..3ca3f7333 100644 --- a/libc/sysdeps/linux/common/ppoll.c +++ b/libc/sysdeps/linux/common/ppoll.c @@ -17,13 +17,13 @@ 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 @@ -51,5 +51,4 @@ ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, return result; # endif } -libc_hidden_def(ppoll) #endif |