summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/munlockall.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/munlockall.c')
-rw-r--r--libc/sysdeps/linux/common/munlockall.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/munlockall.c b/libc/sysdeps/linux/common/munlockall.c
index 4ee729292..39507715a 100644
--- a/libc/sysdeps/linux/common/munlockall.c
+++ b/libc/sysdeps/linux/common/munlockall.c
@@ -7,8 +7,10 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#include "syscalls.h"
+#include <sys/syscall.h>
+
+#if defined __NR_munlockall && defined __ARCH_USE_MMU__
#include <sys/mman.h>
-#if defined __ARCH_USE_MMU__
+
_syscall0(int, munlockall);
#endif