diff options
| author | Adam Grandquist <grandquista@gmail.com> | 2016-07-23 13:17:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-23 13:17:12 -0700 |
| commit | 25519812d447bdc763f28f601688d798fcbe43b2 (patch) | |
| tree | 76b0ac2cde91884abbc1a3798fccebc4a6b6d34c | |
| parent | 29c3365ae7bcf034e9c9e3a0f248fc9f0fc486ac (diff) | |
| download | luasystem-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 | ||
