openbsd: remove specific block and cleanup linkage
- the specific block for dl* function isn't need for openbsd if libdl isn't marked to be linked here. remove them. - remove the linkage for libdl: it should already specified in `rtdeps.rs`. the code of `dynamic_lib.rs` include libdl for: - linux (already defined in rtdeps.rs) - android (already defined in rtdeps.rs) - macos (not needed for macos) - ios (probably the same as macos) - freebsd (libdl is a stub) - dragonfly (libdl is a stub)
This commit is contained in:
parent
3430578460
commit
fdb5d77d09
1 changed files with 0 additions and 12 deletions
|
|
@ -256,18 +256,6 @@ mod dl {
|
|||
dlclose(handle as *mut libc::c_void); ()
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "openbsd"))]
|
||||
#[link_name = "dl"]
|
||||
extern {
|
||||
fn dlopen(filename: *const libc::c_char,
|
||||
flag: libc::c_int) -> *mut libc::c_void;
|
||||
fn dlerror() -> *mut libc::c_char;
|
||||
fn dlsym(handle: *mut libc::c_void,
|
||||
symbol: *const libc::c_char) -> *mut libc::c_void;
|
||||
fn dlclose(handle: *mut libc::c_void) -> libc::c_int;
|
||||
}
|
||||
|
||||
#[cfg(target_os = "openbsd")]
|
||||
extern {
|
||||
fn dlopen(filename: *const libc::c_char,
|
||||
flag: libc::c_int) -> *mut libc::c_void;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue