summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/mincore.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/mincore.c')
-rw-r--r--libc/sysdeps/linux/common/mincore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/mincore.c b/libc/sysdeps/linux/common/mincore.c
index 0e3ade1ce..1dc9a9a1a 100644
--- a/libc/sysdeps/linux/common/mincore.c
+++ b/libc/sysdeps/linux/common/mincore.c
@@ -6,10 +6,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_mincore && (defined __USE_BSD || defined __USE_SVID)
#include <unistd.h>
#include <sys/mman.h>
-
-#ifdef __NR_mincore
_syscall3(int, mincore, void *, start, size_t, length, unsigned char *, vec);
#endif