summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscar Lim <o-lim@users.noreply.github.com>2016-07-23 21:26:18 -0700
committerGitHub <noreply@github.com>2016-07-23 21:26:18 -0700
commit5e172430e57c1349485a151fa8000b12071a4671 (patch)
tree76b0ac2cde91884abbc1a3798fccebc4a6b6d34c
parent29c3365ae7bcf034e9c9e3a0f248fc9f0fc486ac (diff)
parent25519812d447bdc763f28f601688d798fcbe43b2 (diff)
downloadluasystem-5e172430e57c1349485a151fa8000b12071a4671.zip
Merge pull request #2 from grandquista/patch-1
Fix macOS 10.12 having `clock_gettime`
-rw-r--r--src/time.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/time.c b/src/time.c
index 353f259..2c58950 100644
--- a/src/time.c
+++ b/src/time.c
@@ -10,9 +10,11 @@
#include <sys/time.h>
#endif
+#ifndef HAVE_CLOCK_GETTIME
#ifdef __APPLE__
#include "time_osx.h"
#endif
+#endif
#include "compat.h"