Skip to content

Commit 5a21e90

Browse files
committed
Add RTLD_DEFAULT to more platforms
1 parent fb2f0bb commit 5a21e90

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ pub const POLLNVAL: ::c_short = 0x20;
141141
pub const IF_NAMESIZE: ::size_t = 16;
142142

143143
pub const RTLD_LAZY: ::c_int = 0x1;
144+
pub const RTLD_DEFAULT: *mut ::c_void = 0i64 as *mut ::c_void;
144145

145146
cfg_if! {
146147
if #[cfg(not(stdbuild))] {

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ pub const ST_NOATIME: ::c_ulong = 1024;
309309
pub const ST_NODIRATIME: ::c_ulong = 2048;
310310

311311
pub const RTLD_NEXT: *mut ::c_void = -1i64 as *mut ::c_void;
312-
pub const RTLD_DEFAULT: *mut ::c_void = 0i64 as *mut ::c_void;
313312
pub const RTLD_NODELETE: ::c_int = 0x1000;
314313
pub const RTLD_NOW: ::c_int = 0x2;
315314

0 commit comments

Comments
 (0)