Browse Source

if __NR_msync does not exist, dont try and create a syscall for it

Mike Frysinger 18 years ago
parent
commit
1f9d3f3d86
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/common/msync.c

+ 5 - 0
libc/sysdeps/linux/common/msync.c

@@ -9,9 +9,14 @@
 
 #include "syscalls.h"
 #include <unistd.h>
+
+#ifdef __NR_msync
+
 #include <sys/mman.h>
 
 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