diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-12-01 09:50:36 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-12-01 09:50:36 +0100 |
commit | 8c3ffd2a4fe2dbb0033c1f830d384c0c2d8c88a1 (patch) | |
tree | ad1cd324f08dc78d95225d3a49ce0c54fdb928f9 /src/api/dlopen.rs | |
parent | 5b819eda9ab682e06bfbabe64ce52bc5444b7608 (diff) | |
parent | 816fbb2165e3d2f5656a3afa9d9553551c0c6b68 (diff) | |
download | glutin-8c3ffd2a4fe2dbb0033c1f830d384c0c2d8c88a1.tar.gz glutin-8c3ffd2a4fe2dbb0033c1f830d384c0c2d8c88a1.zip |
Merge pull request #667 from tomaka/libc-update
Follow-up of #666
Diffstat (limited to 'src/api/dlopen.rs')
-rw-r--r-- | src/api/dlopen.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/api/dlopen.rs b/src/api/dlopen.rs index 1bb2a0a..bacdd2c 100644 --- a/src/api/dlopen.rs +++ b/src/api/dlopen.rs @@ -1,15 +1,15 @@ #![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))] #![allow(dead_code)] -use libc; +use std::os::raw::{c_void, c_char, c_int}; -pub const RTLD_LAZY: libc::c_int = 0x001; -pub const RTLD_NOW: libc::c_int = 0x002; +pub const RTLD_LAZY: c_int = 0x001; +pub const RTLD_NOW: c_int = 0x002; #[link="dl"] extern { - pub fn dlopen(filename: *const libc::c_char, flag: libc::c_int) -> *mut libc::c_void; - pub fn dlerror() -> *mut libc::c_char; - pub fn dlsym(handle: *mut libc::c_void, symbol: *const libc::c_char) -> *mut libc::c_void; - pub fn dlclose(handle: *mut libc::c_void) -> libc::c_int; + pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void; + pub fn dlerror() -> *mut c_char; + pub fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void; + pub fn dlclose(handle: *mut c_void) -> c_int; } |