summaryrefslogtreecommitdiff
path: root/std/time.zc
diff options
context:
space:
mode:
Diffstat (limited to 'std/time.zc')
-rw-r--r--std/time.zc3
1 files changed, 3 insertions, 0 deletions
diff --git a/std/time.zc b/std/time.zc
index 865dd6d..fa764ed 100644
--- a/std/time.zc
+++ b/std/time.zc
@@ -5,6 +5,9 @@ include <unistd.h>
include <sys/time.h>
include <stdlib.h>
+// Minimal raw block: required because gettimeofday() uses struct timeval
+// which can't be declared in Zen-C without type conflicts, and time()
+// has conflicting type signature (time_t* vs void*)
raw {
static uint64_t _time_now_impl(void) {
struct timeval tv;