Browse Source

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>
Thomas Petazzoni 7 years ago
parent
commit
bf7a84dc1f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/madvise.c

+ 2 - 0
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