ref: e374016cbdd281d23802c25aed35febe247560a6
parent: 1252169ce7027d50158d5a12bad0a2a1b92ce3f7
author: Ori Bernstein <[email protected]>
date: Fri Aug 30 09:02:05 EDT 2013
And now now() compiles on Linux as well.
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -21,8 +21,8 @@
;;
type timespec = struct
- secs : uint64
- nsecs : uint64
+ sec : uint64
+ nsec : uint64
;;
type statbuf = struct
@@ -411,9 +411,9 @@
const mmap : (addr:byte#, len:size, prot:mprot, flags:mopt, fd:fd, off:off -> byte#)
/* time */
- const clock_getres : (clk : clock, ts : timespec# -> int)
- const clock_gettime : (clk : clock, ts : timespec# -> int)
- const clock_settime : (clk : clock, ts : timespec# -> int)
+ const clock_getres : (clk : clock, ts : timespec# -> int32)
+ const clock_gettime : (clk : clock, ts : timespec# -> int32)
+ const clock_settime : (clk : clock, ts : timespec# -> int32)
;;
/* process management */