From 87f2ab95bb701280d4faaa88579f7e350521d4e2 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sun, 13 Jan 2019 14:36:35 -0700
Subject: [PATCH] Fix redox compilation

---
 src/platform/redox/mod.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/platform/redox/mod.rs b/src/platform/redox/mod.rs
index b98b6546..0a96db2d 100644
--- a/src/platform/redox/mod.rs
+++ b/src/platform/redox/mod.rs
@@ -552,7 +552,7 @@ impl Pal for Sys {
 
     fn gettid() -> pid_t {
         //TODO
-        getpid()
+        Self::getpid()
     }
 
     fn gettimeofday(tp: *mut timeval, tzp: *mut timezone) -> c_int {
@@ -819,7 +819,7 @@ impl Pal for Sys {
     }
 
     fn pte_clone() -> pid_t {
-        e(syscall::clone(syscall::CLONE_VM | syscall::CLONE_FS | syscall::CLONE_FILES | syscall::CLONE_SIGHAND)) as pid_t
+        e(unsafe { syscall::clone(syscall::CLONE_VM | syscall::CLONE_FS | syscall::CLONE_FILES | syscall::CLONE_SIGHAND) }) as pid_t
     }
 
     fn read(fd: c_int, buf: &mut [u8]) -> ssize_t {
-- 
GitLab