From f4147e587d47c3bb6b3c367d5f2002fc4e357927 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Sun, 21 May 2017 13:23:42 -0700 Subject: [PATCH] Implement requires_synchronized_create() for Redox This was breaking the libstd build for Redox. --- src/libstd/sys/redox/thread_local.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libstd/sys/redox/thread_local.rs b/src/libstd/sys/redox/thread_local.rs index abdd9ace795..cacd84e2102 100644 --- a/src/libstd/sys/redox/thread_local.rs +++ b/src/libstd/sys/redox/thread_local.rs @@ -64,3 +64,8 @@ pub unsafe fn set(key: Key, value: *mut u8) { pub unsafe fn destroy(key: Key) { keys().remove(&key); } + +#[inline] +pub fn requires_synchronized_create() -> bool { + false +}