diff options
Diffstat (limited to 'libc/sysdeps/linux/common/msync.c')
-rw-r--r-- | libc/sysdeps/linux/common/msync.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/msync.c b/libc/sysdeps/linux/common/msync.c index 352fb4903..88f021f43 100644 --- a/libc/sysdeps/linux/common/msync.c +++ b/libc/sysdeps/linux/common/msync.c @@ -10,17 +10,13 @@ #include <sys/syscall.h> #include <unistd.h> -#ifdef __NR_msync +#if defined __NR_msync && defined __ARCH_USE_MMU__ #include <sys/mman.h> -#ifdef __ARCH_USE_MMU__ - extern __typeof(msync) __libc_msync; #define __NR___libc_msync __NR_msync _syscall3(int, __libc_msync, void *, addr, size_t, length, int, flags); weak_alias(__libc_msync,msync) #endif - -#endif |