From f5af28c88607e4392e0112aaf29e2639a46179bc Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Fri, 27 May 2022 22:26:17 +0100 Subject: [PATCH] More SNtp debug 10 --- .github/workflows/test.yml | 2 +- mongoose.h | 2 +- src/arch_unix.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d150e609..7e1ea65b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: - name: Install packages run: HOMEBREW_NO_AUTO_UPDATE=1 brew install jq mbedtls openssl - name: make - run: make test++ upload-coverage IPV6=0 ASAN_OPTIONS= TFLAGS=-DMG_ENABLE_POLL=1 + run: make test++ upload-coverage IPV6=0 ASAN_OPTIONS= - name: openssl run: make test SSL=OPENSSL IPV6=0 ASAN_OPTIONS= OPENSSL=`echo /usr/local/Cellar/openssl*/*` - name: exports diff --git a/mongoose.h b/mongoose.h index 69edd263..d67686e3 100644 --- a/mongoose.h +++ b/mongoose.h @@ -418,7 +418,7 @@ extern int SockSet(SOCKET hSock, int Type, int Prop, void *pbuf, int size); #define _DARWIN_UNLIMITED_SELECT 1 // No limit on file descriptors -#if !defined(MG_ENABLE_POLL) && defined(__linux__) +#if !defined(MG_ENABLE_POLL) && (defined(__linux__) || defined(__APPLE__)) #define MG_ENABLE_POLL 1 #endif diff --git a/src/arch_unix.h b/src/arch_unix.h index 1ee38472..2e6b10bd 100644 --- a/src/arch_unix.h +++ b/src/arch_unix.h @@ -4,7 +4,7 @@ #define _DARWIN_UNLIMITED_SELECT 1 // No limit on file descriptors -#if !defined(MG_ENABLE_POLL) && defined(__linux__) +#if !defined(MG_ENABLE_POLL) && (defined(__linux__) || defined(__APPLE__)) #define MG_ENABLE_POLL 1 #endif