and another bug in setbit, etc. macros..
[musl] / include / sys / mman.h
index 6aede8b..a48c2b4 100644 (file)
@@ -25,12 +25,19 @@ int munlock (const void *, size_t);
 int mlockall (int);
 int munlockall (void);
 
-/* linux extension */
+#ifdef _GNU_SOURCE
 void *mremap (void *, size_t, size_t, int, ...);
+int madvise (void *, size_t, int);
+#endif
 
 int shm_open (const char *, int, mode_t);
 int shm_unlink (const char *);
 
+#ifdef _LARGEFILE64_SOURCE
+#define mmap64 mmap
+#define off64_t off_t
+#endif
+
 #ifdef __cplusplus
 }
 #endif