Browse Source

posix_madvise not available for noMMU

Waldemar Brodkorb 7 years ago
parent
commit
9945c6d217
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/posix_madvise.c

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