aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2013-03-06 17:36:37 +0100
committerAndreas Jaeger <aj@suse.de>2013-03-06 17:36:37 +0100
commit664a9ce4ca40feabff781fff044c93a43ae15b59 (patch)
treea9c9e8e2565ff8c951b693e119b0ea0869699b76 /sysdeps/unix
parenta6f2f4353886ba4868c3f41001d2eac2fcebf4b8 (diff)
downloadglibc-664a9ce4ca40feabff781fff044c93a43ae15b59.zip
glibc-664a9ce4ca40feabff781fff044c93a43ae15b59.tar.gz
glibc-664a9ce4ca40feabff781fff044c93a43ae15b59.tar.bz2
Use <bits/mman-linux.h> for MIPS
* sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow definition via __MAP_ANONYMOUS. * sysdeps/unix/sysv/linux/mips/bits/mman.h: Remove all defines provided by bits/mman-linux.h and include <bits/mman-linux.h>. (__MAP_ANONYMOUS): Define.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/bits/mman-linux.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index 27d2dc4..05d2d92 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -49,7 +49,11 @@
#define MAP_FIXED 0x10 /* Interpret addr exactly. */
#ifdef __USE_MISC
# define MAP_FILE 0
-# define MAP_ANONYMOUS 0x20 /* Don't use a file. */
+# ifdef __MAP_ANONYMOUS
+# define MAP_ANONYMOUS __MAP_ANONYMOUS /* Don't use a file. */
+# else
+# define MAP_ANONYMOUS 0x20 /* Don't use a file. */
+# endif
# define MAP_ANON MAP_ANONYMOUS
/* When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size. */
# define MAP_HUGE_SHIFT 26