authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-05-08 22:11:03+10:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-05-08 22:34:18+10:00
log45f7c78bfcfe1ddef54ee2de05e9425b990de553
treee088ee223b4ed085d2a1f863f1592dec5b4bcdfc
parent2c9effc101f2359f6233fefb47eb850001634b42
signature Commit is signed but in an unrecognized format.

std: fix RTLD_ constants on OSX


1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/os/bits/darwin.zig+4-4
...@@ -1263,10 +1263,10 @@ pub const RTLD_NOLOAD = 0x10;...@@ -1263,10 +1263,10 @@ pub const RTLD_NOLOAD = 0x10;
1263pub const RTLD_NODELETE = 0x80;1263pub const RTLD_NODELETE = 0x80;
1264pub const RTLD_FIRST = 0x100;1264pub const RTLD_FIRST = 0x100;
12651265
1266pub const RTLD_NEXT = @intToPtr(*c_void, ~maxInt(usize));1266pub const RTLD_NEXT = @intToPtr(*c_void, @bitCast(usize, @as(isize, -1)));
1267pub const RTLD_DEFAULT = @intToPtr(*c_void, ~maxInt(usize) - 1);1267pub const RTLD_DEFAULT = @intToPtr(*c_void, @bitCast(usize, @as(isize, -2)));
1268pub const RTLD_SELF = @intToPtr(*c_void, ~maxInt(usize) - 2);1268pub const RTLD_SELF = @intToPtr(*c_void, @bitCast(usize, @as(isize, -3)));
1269pub const RTLD_MAIN_ONLY = @intToPtr(*c_void, ~maxInt(usize) - 4);1269pub const RTLD_MAIN_ONLY = @intToPtr(*c_void, @bitCast(usize, @as(isize, -5)));
12701270
1271/// duplicate file descriptor1271/// duplicate file descriptor
1272pub const F_DUPFD = 0;1272pub const F_DUPFD = 0;