summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-07 23:18:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-12-10 15:14:29 +0100
commitbf7a84dc1fd8c9c340222260cb3e53019715088c (patch)
tree2937e01da7a253c03f0052c398f7b251185a3385 /libc/sysdeps
parentb5bd012fab8560a78c70edef7e921e2b950dd02f (diff)
libc/sysdeps/linux/common/madvise.c: disable on noMMU architectures
Similar to what was done in commit 9945c6d21797553e78cbef8034f6dd16b3824df5 for posix_madvise(). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/madvise.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/madvise.c b/libc/sysdeps/linux/common/madvise.c
index e953d7b92..bb486d22c 100644
--- a/libc/sysdeps/linux/common/madvise.c
+++ b/libc/sysdeps/linux/common/madvise.c
@@ -9,6 +9,8 @@
#include <sys/syscall.h>
#include <sys/mman.h>
+#ifdef __ARCH_USE_MMU__
#if defined __NR_madvise && defined __USE_BSD
_syscall3(int, madvise, void *, __addr, size_t, __len, int, __advice)
+#endif /* __ARCH_USE_MMU__ */
#endif