소스 검색

posix_madvise not available for noMMU

Waldemar Brodkorb 7 년 전
부모
커밋
9945c6d217
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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