summaryrefslogtreecommitdiff
path: root/kon
diff options
context:
space:
mode:
Diffstat (limited to 'kon')
-rw-r--r--kon/kontime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kon/kontime.h b/kon/kontime.h
index da46ddd..429c245 100644
--- a/kon/kontime.h
+++ b/kon/kontime.h
@@ -40,7 +40,9 @@ void kon_sleep(kon_time seconds);
#if defined(__linux__) || defined(__unix__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
+#endif
#include <time.h>
kon_time kon_getTime(void) {