summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-09 16:54:34 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-09 16:54:34 -0700
commit997b26b1303f08fd91937a518763e5941d95b1e3 (patch)
tree79e7d6de00f8e5ae2a4f0d5f7168b30c58f87b7a
parent2b99364b132823f9ab10064270ed267d682f9fe8 (diff)
downloadmc-997b26b1303f08fd91937a518763e5941d95b1e3.tar.gz
Fix gettimeofday() on OSX.
They added an arg. We need to as well.
-rw-r--r--lib/sys/sys+osx-x64.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sys/sys+osx-x64.myr b/lib/sys/sys+osx-x64.myr
index 2c42094..3de3875 100644
--- a/lib/sys/sys+osx-x64.myr
+++ b/lib/sys/sys+osx-x64.myr
@@ -840,7 +840,7 @@ extern const __osx_fork : (-> pid)
extern const __osx_pipe : (fd : fd[2]# -> int64)
extern const __osx_getpid : (-> pid)
extern const __osx_lseek : (fd:fd, off:off, whence:whence -> off)
-extern const __osx_gettimeofday : (tv : timeval#, tz : timezone# -> int)
+extern const __osx_gettimeofday : (tv : timeval#, tz : timezone#, abstime : uint64# -> int)
/*
extern const __osx_ptrace
extern const __osx_signalstack
@@ -988,7 +988,7 @@ const mmap = {addr, len, prot, flags, fd, off;
-> (syscall(Sysmmap, a(addr), a(len), a(prot), a(flags), a(fd), a(off)) : byte#)}
/* time */
-const gettimeofday = {tv, tz; -> (__osx_gettimeofday(tv, tz) : int)}
+const gettimeofday = {tv, tz; -> (__osx_gettimeofday(tv, tz, (0 : uint64#)) : int)}
const settimeofday = {tv, tz; -> (syscall(Syssettimeofday, a(tv), a(tz)) : int)}
/* faked with gettimeofday */