aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/dlopen.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-12-01 02:11:54 +0100
committerSimon Sapin <simon.sapin@exyr.org>2015-12-01 02:11:54 +0100
commite4f1c7358d5461415201b9640b475ff3cc1a0065 (patch)
tree1a9fc17717a9cdbcc52877b6da4ede15bec65210 /src/api/dlopen.rs
parent5b819eda9ab682e06bfbabe64ce52bc5444b7608 (diff)
downloadglutin-e4f1c7358d5461415201b9640b475ff3cc1a0065.tar.gz
glutin-e4f1c7358d5461415201b9640b475ff3cc1a0065.zip
Update some libraries
Diffstat (limited to 'src/api/dlopen.rs')
-rw-r--r--src/api/dlopen.rs14
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;
}