Skip to content
Snippets Groups Projects
Verified Commit b2cc8f6d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix compilation on Redox

parent 27cebdd6
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ unsafe fn allocate_tls(size: usize) -> Result<&'static mut [u8]> {
// On Redox, reuse the current TCB
// TODO: Consider adopting Linux behavior
#[cfg(target_os = "redox")]
unsafe fn allocate_tls(size: usize) -> Result<&'static [u8]> {
unsafe fn allocate_tls(size: usize) -> Result<&'static mut [u8]> {
let ptr = sys_mman::mmap(
ptr::null_mut(),
size,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment