OSDN Git Service

powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h
authorSzabolcs Nagy <nsz@port70.net>
Sun, 10 Sep 2017 11:34:54 +0000 (13:34 +0200)
committerRich Felker <dalias@aerifal.cx>
Mon, 11 Sep 2017 18:06:27 +0000 (14:06 -0400)
MAP_{NORESERVE,LOCKED} have different values on powerpc than in generic.

arch/powerpc/bits/mman.h
arch/powerpc64/bits/mman.h

index b6a15a1..95ec435 100644 (file)
@@ -1,4 +1,9 @@
-#define        PROT_SAO       0x10
+#define PROT_SAO       0x10
+
+#undef MAP_NORESERVE
+#define MAP_NORESERVE   0x40
+#undef MAP_LOCKED
+#define MAP_LOCKED     0x80
 
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000
index f5974f8..95ec435 100644 (file)
@@ -1,5 +1,10 @@
 #define PROT_SAO       0x10
 
+#undef MAP_NORESERVE
+#define MAP_NORESERVE   0x40
+#undef MAP_LOCKED
+#define MAP_LOCKED     0x80
+
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000
 #undef MCL_FUTURE