summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Grandquist <grandquista@gmail.com>2016-07-23 13:17:12 -0700
committerGitHub <noreply@github.com>2016-07-23 13:17:12 -0700
commit25519812d447bdc763f28f601688d798fcbe43b2 (patch)
tree76b0ac2cde91884abbc1a3798fccebc4a6b6d34c
parent29c3365ae7bcf034e9c9e3a0f248fc9f0fc486ac (diff)
downloadluasystem-25519812d447bdc763f28f601688d798fcbe43b2.zip
Fix macOS 10.12 having `clock_gettime`
See https://github.com/Homebrew/homebrew-core/issues/1957 for similar issues.
-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"