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