From 031a450aebc7958defeadcdc80bf2b9706b8b222 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 4 Apr 2016 11:51:04 -0700 Subject: [PATCH] Add RTLD_DEFAULT to more platforms --- src/unix/bsd/mod.rs | 1 + src/unix/notbsd/android/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index a74bd909..a280fc92 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -290,6 +290,7 @@ pub const NOFLSH: ::tcflag_t = 0x80000000; pub const WNOHANG: ::c_int = 1; pub const RTLD_NOW: ::c_int = 0x2; +pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void; f! { pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () { diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs index 0024c3f2..8963ddf9 100644 --- a/src/unix/notbsd/android/mod.rs +++ b/src/unix/notbsd/android/mod.rs @@ -550,6 +550,7 @@ pub const TIOCCONS: ::c_int = 0x541D; pub const RTLD_GLOBAL: ::c_int = 0x2; pub const RTLD_NOLOAD: ::c_int = 0x4; pub const RTLD_NOW: ::c_int = 0; +pub const RTLD_DEFAULT: *mut ::c_void = -1isize as *mut ::c_void; f! { pub fn sigemptyset(set: *mut sigset_t) -> ::c_int {