aboutsummaryrefslogtreecommitdiff
path: root/lib/time
diff options
context:
space:
mode:
Diffstat (limited to 'lib/time')
-rw-r--r--lib/time/time.tm1
-rw-r--r--lib/time/time_defs.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/time/time.tm b/lib/time/time.tm
index 456b5f08..d26d7218 100644
--- a/lib/time/time.tm
+++ b/lib/time/time.tm
@@ -1,4 +1,5 @@
# Time - a module for dealing with dates and times
+use <math.h>
use ./time_defs.h
enum Weekday(Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)
diff --git a/lib/time/time_defs.h b/lib/time/time_defs.h
index 30000983..2ae1d9e4 100644
--- a/lib/time/time_defs.h
+++ b/lib/time/time_defs.h
@@ -1,6 +1,7 @@
#pragma once
-#include <time.h>
+#include <stdlib.h>
#include <sys/time.h>
+#include <time.h>
typedef struct timeval Time;