Explorar el Código

posix_madvise not available for noMMU

Waldemar Brodkorb hace 7 años
padre
commit
9945c6d217
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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