From e217dba1e22fe8f46e7b45e8952138d334b90262 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 18 Dec 2024 02:26:10 -0300 Subject: [PATCH 1/3] fix: do not rely on luaconf.h to include limits.h Fixes #38. --- src/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time.c b/src/time.c index 05f4f1b..c18ec49 100644 --- a/src/time.c +++ b/src/time.c @@ -5,10 +5,10 @@ #include #include +#include #ifdef _WIN32 #include -#include #include #else #include From a2c9e969f08f8f3f15607f8f2adad2e6af680873 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 18 Dec 2024 02:40:51 -0300 Subject: [PATCH 2/3] fix: suppress -Wexpansion-to-defined warning See https://stackoverflow.com/questions/42074035/how-to-deal-with-clangs-3-9-wexpansion-to-defined-warning --- src/time.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/time.c b/src/time.c index c18ec49..efa7655 100644 --- a/src/time.c +++ b/src/time.c @@ -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" From 80cb38c8631254dfc2a1a3f5b42644f031042818 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 18 Dec 2024 02:42:17 -0300 Subject: [PATCH 3/3] ci: ensure we don't try installing old version of luasystem --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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"