summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/prctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/prctl.c')
-rw-r--r--libc/sysdeps/linux/common/prctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/prctl.c b/libc/sysdeps/linux/common/prctl.c
index 52d1e76e0..485386727 100644
--- a/libc/sysdeps/linux/common/prctl.c
+++ b/libc/sysdeps/linux/common/prctl.c
@@ -7,8 +7,11 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#include "syscalls.h"
+#include <sys/syscall.h>
#include <stdarg.h>
/* psm: including sys/prctl.h would depend on kernel headers */
+
+#ifdef __NR_prctl
extern int prctl (int, long, long, long, long);
_syscall5(int, prctl, int, option, long, arg2, long, arg3, long, arg4, long, arg5);
+#endif