summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2015-01-30 14:28:13 +0100
committerSébastien Marie <semarie@users.noreply.github.com>2015-02-01 14:41:41 +0100
commitfdb5d77d0921f70d4c7b6b1ace15b5d481a6b732 (patch)
tree0898517cf0a6a5d52d82244e30d87176843ffac4 /src/libstd
parent34305784601e046f9eb8e107e88bf609f352afc6 (diff)
downloadrust-fdb5d77d0921f70d4c7b6b1ace15b5d481a6b732.tar.gz
rust-fdb5d77d0921f70d4c7b6b1ace15b5d481a6b732.zip
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)
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/dynamic_lib.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs
index 458b0a46e8b..c4017627e28 100644
--- a/src/libstd/dynamic_lib.rs
+++ b/src/libstd/dynamic_lib.rs
@@ -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;