summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-02-02 15:12:16 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2022-02-02 15:12:16 -0400
commitf508cbeaad62b3cdc77cb295ce105c3527ba019c (patch)
treeba1f9a734edd79fe66d2ba0d3b5d3cec7804cfef
parentfa2521bdf6dd8d4b67cb075c85442dbc2b924fd2 (diff)
io.c: Add include for `<time.h>`.
This is used by the delay code in `get_key()`.
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index a3eb061..13b7819 100644
--- a/io.c
+++ b/io.c
@@ -1,4 +1,7 @@
#include "sux.h"
+#if delay_clk && getclk && !bench
+#include <time.h>
+#endif
#define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b))
#define DEFAULT(a, b) (a) = (a) ? (a) : (b)