Skip to content

Commit f6e32a7

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

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ pub const NOFLSH: ::tcflag_t = 0x80000000;
290290
pub const WNOHANG: ::c_int = 1;
291291

292292
pub const RTLD_NOW: ::c_int = 0x2;
293+
pub const RTLD_DEFAULT: *mut ::c_void = (!0usize + 1) as *mut ::c_void;
293294

294295
f! {
295296
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {

src/unix/notbsd/android/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ pub const TIOCCONS: ::c_int = 0x541D;
550550
pub const RTLD_GLOBAL: ::c_int = 0x2;
551551
pub const RTLD_NOLOAD: ::c_int = 0x4;
552552
pub const RTLD_NOW: ::c_int = 0;
553+
pub const RTLD_DEFAULT: *mut ::c_void = !0usize as *mut ::c_void;
553554

554555
f! {
555556
pub fn sigemptyset(set: *mut sigset_t) -> ::c_int {

0 commit comments

Comments
 (0)