Explorar o código

Fix missing import

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

+ 1 - 0
src/ld_so/tcb.rs

@@ -172,6 +172,7 @@ impl Tcb {
     /// OS specific code to create a new TLS and TCB - Redox
     #[cfg(target_os = "redox")]
     unsafe fn os_new(size: usize) -> Result<(&'static mut [u8], &'static mut [u8])> {
+        use header::unistd;
         //TODO: better method of finding fs offset
         let pid = unistd::getpid();
         let tcb_addr = 0xB000_0000 + pid as usize * PAGE_SIZE;