浏览代码

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 8 年之前
父节点
当前提交
bf7a84dc1f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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