diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-28 07:31:00 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-28 07:31:00 +0100 |
commit | 9945c6d21797553e78cbef8034f6dd16b3824df5 (patch) | |
tree | f71c614dad64a80d85bfa1decfaf3885be348dc4 /libc/sysdeps | |
parent | 74ca8d6f5d2e29bb7cf4606531313ee8c52b9eda (diff) |
posix_madvise not available for noMMU
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/posix_madvise.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/posix_madvise.c b/libc/sysdeps/linux/common/posix_madvise.c index 2f95bcba7..541dabe62 100644 --- a/libc/sysdeps/linux/common/posix_madvise.c +++ b/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 |