1 From 9945c6d21797553e78cbef8034f6dd16b3824df5 Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@openadk.org>
3 Date: Mon, 28 Nov 2016 07:31:00 +0100
4 Subject: [PATCH] posix_madvise not available for noMMU
6 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
8 libc/sysdeps/linux/common/posix_madvise.c | 2 ++
9 1 file changed, 2 insertions(+)
11 diff --git a/libc/sysdeps/linux/common/posix_madvise.c b/libc/sysdeps/linux/common/posix_madvise.c
12 index 2f95bcb..541dabe 100644
13 --- a/libc/sysdeps/linux/common/posix_madvise.c
14 +++ b/libc/sysdeps/linux/common/posix_madvise.c
17 #include <sys/syscall.h>
19 +#ifdef __ARCH_USE_MMU__
20 #if defined __NR_madvise && defined __USE_XOPEN2K && defined __UCLIBC_HAS_ADVANCED_REALTIME__
21 int posix_madvise(void *addr, size_t len, int advice)
23 @@ -23,3 +24,4 @@ int posix_madvise(void *addr, size_t len, int advice)
24 return INTERNAL_SYSCALL_ERRNO (result, err);