From 5008d866b97fdd3bc361140c1367a52bccc3bbf6 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Sat, 24 Feb 2024 13:21:55 -0600 Subject: [PATCH] Include poll.h on UNIXCOMMON Apple was not including poll.h despite needing it. --- src/sdl/i_system.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 698710d06..173866e8b 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -102,8 +102,11 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); #endif #endif -#if defined (__unix__) || (defined (UNIXCOMMON) && !defined (__APPLE__)) +#if defined(UNIXCOMMON) #include +#endif + +#if defined (__unix__) || (defined (UNIXCOMMON) && !defined (__APPLE__)) #include #include #define NEWSIGNALHANDLER