about summary refs log tree commit diff
path: root/src/libstd/thread/local.rs
diff options
context:
space:
mode:
authorJeremy Soller <jackpot51@gmail.com>2016-10-27 20:57:49 -0600
committerJeremy Soller <jackpot51@gmail.com>2016-10-27 20:57:49 -0600
commit8b09e01fef9912e7c3eef997c40f9f4f91d09e4c (patch)
treeab28c5cd1bb526809e12e316ea2b3c2135f72f28 /src/libstd/thread/local.rs
parent07436946b6ee6345509b73c6e4dafb38b6a243f1 (diff)
downloadrust-8b09e01fef9912e7c3eef997c40f9f4f91d09e4c.tar.gz
rust-8b09e01fef9912e7c3eef997c40f9f4f91d09e4c.zip
Add redox system
Diffstat (limited to 'src/libstd/thread/local.rs')
-rw-r--r--src/libstd/thread/local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index 54d3f793045..a1ae2c1cb42 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -358,7 +358,7 @@ pub mod elf {
         }
     }
 
-    #[cfg(any(target_os = "linux", target_os = "fuchsia"))]
+    #[cfg(any(target_os = "linux", target_os = "fuchsia", target_os = "redox"))]
     unsafe fn register_dtor_fallback(t: *mut u8, dtor: unsafe extern fn(*mut u8)) {
         // The fallback implementation uses a vanilla OS-based TLS key to track
         // the list of destructors that need to be run for this thread. The key
@@ -437,7 +437,7 @@ pub mod elf {
 
     // Just use the thread_local fallback implementation, at least until there's
     // a more direct implementation.
-    #[cfg(target_os = "fuchsia")]
+    #[cfg(any(target_os = "fuchsia", target_os = "redox"))]
     unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern fn(*mut u8)) {
         register_dtor_fallback(t, dtor);
     }