Allow using EGL with X11
This commit is contained in:
parent
9a0ca92692
commit
0417f7003f
6 changed files with 45 additions and 17 deletions
14
src/api/dlopen.rs
Normal file
14
src/api/dlopen.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#![cfg(target_os = "linux")]
|
||||
|
||||
use libc;
|
||||
|
||||
pub const RTLD_LAZY: libc::c_int = 0x001;
|
||||
pub const RTLD_NOW: libc::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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue