Forráskód Böngészése

msync: skip if syscall is missing

Some arches skip the msync syscall as it is useless (like nommu).  So
don't require it to build.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 14 éve
szülő
commit
57e1e47345
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      libc/sysdeps/linux/common/msync.c

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

@@ -11,6 +11,8 @@
 #include <unistd.h>
 #include <sys/mman.h>
 
+#ifdef __NR_msync
+
 #ifdef __UCLIBC_HAS_THREADS_NATIVE__
 #include <sysdep-cancel.h>
 #else
@@ -39,3 +41,5 @@ int __libc_msync(void * addr, size_t length, int flags)
 #endif
 }
 weak_alias(__libc_msync,msync)
+
+#endif