about summary refs log tree commit diff
path: root/include/sys/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/mman.h')
-rw-r--r--include/sys/mman.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index a45f11d6..5cfafbed 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -36,7 +36,7 @@ int madvise (void *, size_t, int);
 int shm_open (const char *, int, mode_t);
 int shm_unlink (const char *);
 
-#ifdef _LARGEFILE64_SOURCE
+#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
 #define mmap64 mmap
 #define off64_t off_t
 #endif