aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-11 16:55:07 +0200
committerKim Alvefur <zash@zash.se>2018-08-11 16:55:07 +0200
commit592ccd8233224349fa8bd41c088afd090ba52624 (patch)
treee0161a63587c087fc7afcb95410f76558740df68
parent7f1be1b938f8ffc2752c2a8a5a347687cebe3bf5 (diff)
downloadprosody-592ccd8233224349fa8bd41c088afd090ba52624.tar.gz
prosody-592ccd8233224349fa8bd41c088afd090ba52624.zip
util.time: Allow for already set constant
-rw-r--r--util-src/time.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util-src/time.c b/util-src/time.c
index 789833d9..bfad52ee 100644
--- a/util-src/time.c
+++ b/util-src/time.c
@@ -1,4 +1,6 @@
+#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L
+#endif
#include <time.h>
#include <lua.h>