Skip to content

Commit 5c0742b

Browse files
committed
musl: powerpc64: Fix definition of MAP_LOCKED and MAP_NORESERVE
powerpc and powerpc64 have different definitions for these in musl. The powerpc values were correct, but powerpc64 ones were not. This was changed in musl 1.1.17. See https://git.musl-libc.org/cgit/musl/commit/?id=c10bc61508dc52b8315084e628f36a6c3c2dabb1 Signed-off-by: Jens Reidel <adrian@travitia.xyz>
1 parent be45368 commit 5c0742b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/linux_like/linux/musl/b64/powerpc64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ pub const MAP_ANON: c_int = 0x0020;
177177
pub const MAP_GROWSDOWN: c_int = 0x0100;
178178
pub const MAP_DENYWRITE: c_int = 0x0800;
179179
pub const MAP_EXECUTABLE: c_int = 0x01000;
180-
pub const MAP_LOCKED: c_int = 0x02000;
181-
pub const MAP_NORESERVE: c_int = 0x04000;
180+
pub const MAP_LOCKED: c_int = 0x80;
181+
pub const MAP_NORESERVE: c_int = 0x40;
182182
pub const MAP_POPULATE: c_int = 0x08000;
183183
pub const MAP_NONBLOCK: c_int = 0x010000;
184184
pub const MAP_STACK: c_int = 0x020000;

0 commit comments

Comments
 (0)