diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-02-04 13:56:59 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-05 17:11:02 -0800 |
| commit | 1a31e1c09f89daeefa06ca9336912e9bcadb0c1d (patch) | |
| tree | 21555a570bd032e4aab39c7f9a6ee6aa9c16eada /src/libstd/sys/unix/mod.rs | |
| parent | 1bd2d2016178fe85e42d4d34868e9bc58dfd5d07 (diff) | |
| download | rust-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.rs | 3 |
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; |
