From e4f1c7358d5461415201b9640b475ff3cc1a0065 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 1 Dec 2015 02:11:54 +0100 Subject: Update some libraries --- src/api/dlopen.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/api/dlopen.rs') 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; } -- cgit v1.2.3