aboutsummaryrefslogtreecommitdiff
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.tar.gz
luasystem-25519812d447bdc763f28f601688d798fcbe43b2.tar.bz2
luasystem-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 @@
10#include <sys/time.h> 10#include <sys/time.h>
11#endif 11#endif
12 12
13#ifndef HAVE_CLOCK_GETTIME
13#ifdef __APPLE__ 14#ifdef __APPLE__
14#include "time_osx.h" 15#include "time_osx.h"
15#endif 16#endif
17#endif
16 18
17#include "compat.h" 19#include "compat.h"
18 20