about summary refs log tree commit diff
path: root/src/libstd/sys/unix/mod.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-02-04 13:56:59 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-02-05 17:11:02 -0800
commit1a31e1c09f89daeefa06ca9336912e9bcadb0c1d (patch)
tree21555a570bd032e4aab39c7f9a6ee6aa9c16eada /src/libstd/sys/unix/mod.rs
parent1bd2d2016178fe85e42d4d34868e9bc58dfd5d07 (diff)
downloadrust-1a31e1c09f89daeefa06ca9336912e9bcadb0c1d.tar.gz
rust-1a31e1c09f89daeefa06ca9336912e9bcadb0c1d.zip
std: Add a helper for symbols that may not exist
Right now we only attempt to call one symbol which my not exist everywhere,
__pthread_get_minstack, but this pattern will come up more often as we start to
bind newer functionality of systems like Linux.

Take a similar strategy as the Windows implementation where we use `dlopen` to
lookup whether a symbol exists or not.
Diffstat (limited to 'src/libstd/sys/unix/mod.rs')
-rw-r--r--src/libstd/sys/unix/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/mod.rs b/src/libstd/sys/unix/mod.rs
index f8a4bcdecd7..01769a75afd 100644
--- a/src/libstd/sys/unix/mod.rs
+++ b/src/libstd/sys/unix/mod.rs
@@ -27,6 +27,9 @@ use ops::Neg;
 #[cfg(target_os = "openbsd")]   pub use os::openbsd as platform;
 #[cfg(target_os = "solaris")]   pub use os::solaris as platform;
 
+#[macro_use]
+pub mod weak;
+
 pub mod backtrace;
 pub mod condvar;
 pub mod ext;