1 From bf7a84dc1fd8c9c340222260cb3e53019715088c Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 7 Dec 2016 23:18:49 +0100
4 Subject: [PATCH] libc/sysdeps/linux/common/madvise.c: disable on noMMU
7 Similar to what was done in commit
8 9945c6d21797553e78cbef8034f6dd16b3824df5 for posix_madvise().
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
13 libc/sysdeps/linux/common/madvise.c | 2 ++
14 1 file changed, 2 insertions(+)
16 diff --git a/libc/sysdeps/linux/common/madvise.c b/libc/sysdeps/linux/common/madvise.c
17 index e953d7b..bb486d2 100644
18 --- a/libc/sysdeps/linux/common/madvise.c
19 +++ b/libc/sysdeps/linux/common/madvise.c
22 #include <sys/syscall.h>
24 +#ifdef __ARCH_USE_MMU__
25 #if defined __NR_madvise && defined __USE_BSD
26 _syscall3(int, madvise, void *, __addr, size_t, __len, int, __advice)
27 +#endif /* __ARCH_USE_MMU__ */