From 757933e7bc80390edf03d741d1c57e070194f212 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 26 Jul 2020 20:06:38 -0700 Subject: [PATCH] Enable poll() on macOS and iOS --- unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix.c b/unix.c index 613f414..2a4caf9 100644 --- a/unix.c +++ b/unix.c @@ -19,8 +19,8 @@ #include "enet/enet.h" #if defined(__APPLE__) -#ifdef HAS_POLL -#undef HAS_POLL +#ifndef HAS_POLL +#define HAS_POLL 1 #endif #ifndef HAS_FCNTL #define HAS_FCNTL 1