summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/posix_madvise.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/posix_madvise.c')
-rw-r--r--libc/sysdeps/linux/common/posix_madvise.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/posix_madvise.c b/libc/sysdeps/linux/common/posix_madvise.c
index 2f95bcba7..541dabe62 100644
--- a/libc/sysdeps/linux/common/posix_madvise.c
+++ b/libc/sysdeps/linux/common/posix_madvise.c
@@ -4,6 +4,7 @@
#include <sys/mman.h>
#include <sys/syscall.h>
+#ifdef __ARCH_USE_MMU__
#if defined __NR_madvise && defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__
int posix_madvise(void *addr, size_t len, int advice)
{
@@ -23,3 +24,4 @@ int posix_madvise(void *addr, size_t len, int advice)
return INTERNAL_SYSCALL_ERRNO (result, err);
}
#endif
+#endif