diff options
| author | Ian Douglas Scott <ian@iandouglasscott.com> | 2017-05-21 13:23:42 -0700 |
|---|---|---|
| committer | Ian Douglas Scott <ian@iandouglasscott.com> | 2017-05-21 13:23:42 -0700 |
| commit | f4147e587d47c3bb6b3c367d5f2002fc4e357927 (patch) | |
| tree | 808259540014f39359d69b64dbb93db0989e99b6 /src/libstd | |
| parent | 14f30da6132c25543da1f06c32a8c5699d3e5747 (diff) | |
| download | rust-f4147e587d47c3bb6b3c367d5f2002fc4e357927.tar.gz rust-f4147e587d47c3bb6b3c367d5f2002fc4e357927.zip | |
Implement requires_synchronized_create() for Redox
This was breaking the libstd build for Redox.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/redox/thread_local.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 +} |
