Explorar o código

Fix compilation on Redox

Jeremy Soller %!s(int64=6) %!d(string=hai) anos
pai
achega
b2cc8f6d26
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ld_so/linker.rs

+ 1 - 1
src/ld_so/linker.rs

@@ -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,