diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13721b4..7ce2825 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,15 +95,14 @@ jobs: with: luarocksVersion: "3.11.0" - - name: dependencies - run: | - luarocks install busted - - name: install run: | - luarocks remove --force luasystem luarocks make + - name: test dependencies + run: | + luarocks install busted + - name: test run: | busted --exclude-tags=manual --Xoutput "--color" diff --git a/src/time.c b/src/time.c index 05f4f1b..efa7655 100644 --- a/src/time.c +++ b/src/time.c @@ -5,10 +5,10 @@ #include #include +#include #ifdef _WIN32 #include -#include #include #else #include @@ -22,7 +22,11 @@ #define MAC_OS_X_VERSION_10_12 101200 #endif -#define HAVE_CLOCK_GETTIME (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC)) +#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC)) +#define HAVE_CLOCK_GETTIME 1 +#else +#define HAVE_CLOCK_GETTIME 0 +#endif #if !(HAVE_CLOCK_GETTIME) #include "time_osx.h"