Skip to content

Commit d071956

Browse files
committed
Add RTLD constants
1 parent 2454a3e commit d071956

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/unix/redox/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ s! {
211211
pub const RTLD_DEFAULT: *mut ::c_void = 0i64 as *mut ::c_void;
212212
// }
213213

214+
// dlfcn.h
215+
216+
pub const RTLD_LAZY: ::c_int = 0x0001;
217+
pub const RTLD_NOW: ::c_int = 0x0002;
218+
pub const RTLD_GLOBAL: ::c_int = 0x0100;
219+
pub const RTLD_LOCAL: ::c_int = 0x0000;
220+
214221
// errno.h
215222
pub const EPERM: ::c_int = 1;
216223
pub const ENOENT: ::c_int = 2;

0 commit comments

Comments
 (0)