aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
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
commitac035e9dc81f8415c052b9313fe2a8199977eb08 (patch)
treee0161a63587c087fc7afcb95410f76558740df68 /util-src
parent943f1f1ea89b3d6d4d92b9c00ff922c9c94acc36 (diff)
downloadprosody-ac035e9dc81f8415c052b9313fe2a8199977eb08.tar.gz
prosody-ac035e9dc81f8415c052b9313fe2a8199977eb08.zip
util.time: Allow for already set constant
Diffstat (limited to 'util-src')
-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>