summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/sigpending.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/sigpending.c')
-rw-r--r--libc/sysdeps/linux/common/sigpending.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/sigpending.c b/libc/sysdeps/linux/common/sigpending.c
index ea8fc40e6..fa272c0f5 100644
--- a/libc/sysdeps/linux/common/sigpending.c
+++ b/libc/sysdeps/linux/common/sigpending.c
@@ -7,7 +7,9 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#include "syscalls.h"
+#include <sys/syscall.h>
+
+#if defined __USE_POSIX
#include <signal.h>
#undef sigpending
@@ -22,3 +24,4 @@ int sigpending(sigset_t * set)
#else
_syscall1(int, sigpending, sigset_t *, set);
#endif
+#endif