Skip to content

Commit f162c05

Browse files
Gelbpunkttgross35
authored andcommitted
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 <[email protected]> (backport <#4516>) (cherry picked from commit 5c0742b)
1 parent 76d4a8e commit f162c05

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
@@ -175,8 +175,8 @@ pub const MAP_ANON: c_int = 0x0020;
175175
pub const MAP_GROWSDOWN: c_int = 0x0100;
176176
pub const MAP_DENYWRITE: c_int = 0x0800;
177177
pub const MAP_EXECUTABLE: c_int = 0x01000;
178-
pub const MAP_LOCKED: c_int = 0x02000;
179-
pub const MAP_NORESERVE: c_int = 0x04000;
178+
pub const MAP_LOCKED: c_int = 0x80;
179+
pub const MAP_NORESERVE: c_int = 0x40;
180180
pub const MAP_POPULATE: c_int = 0x08000;
181181
pub const MAP_NONBLOCK: c_int = 0x010000;
182182
pub const MAP_STACK: c_int = 0x020000;

0 commit comments

Comments
 (0)