]> git.proxmox.com Git - rustc.git/blobdiff - src/libstd/sys/unix/thread.rs
Imported Upstream version 1.2.0+dfsg1
[rustc.git] / src / libstd / sys / unix / thread.rs
index 0cb5a06e6b62f04544193bea70316bc7001e7d7a..bb0e12e8df89944afeca8653820c5e4c661c9905 100644 (file)
@@ -330,10 +330,10 @@ pub mod guard {
 #[cfg(target_os = "linux")]
 fn min_stack_size(attr: *const libc::pthread_attr_t) -> usize {
     use dynamic_lib::DynamicLibrary;
-    use sync::{Once, ONCE_INIT};
+    use sync::Once;
 
     type F = unsafe extern "C" fn(*const libc::pthread_attr_t) -> libc::size_t;
-    static INIT: Once = ONCE_INIT;
+    static INIT: Once = Once::new();
     static mut __pthread_get_minstack: Option<F> = None;
 
     INIT.call_once(|| {