#ifdef _GNU_SOURCE
void *mremap (void *, size_t, size_t, int, ...);
+#endif
+
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
int madvise (void *, size_t, int);
#endif
int shm_open (const char *, int, mode_t);
int shm_unlink (const char *);
+#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
+#define mmap64 mmap
+#define off64_t off_t
+#endif
+
#ifdef __cplusplus
}
#endif