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 b6a15a1242a686f4e01bcb92d7eb9fd18a3b3b89..95ec4358dd52d196d91d343571e880e47ade6e01 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 f5974f82505fbf983afee3dbca8eb71151405497..95ec4358dd52d196d91d343571e880e47ade6e01 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