From 55035343622bf64304cd466f85a6cea68f30564a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 12 Oct 2019 19:41:41 -0700 Subject: [PATCH] Fix Linux build --- unix.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/unix.c b/unix.c index 22983bd..a32a7a9 100644 --- a/unix.c +++ b/unix.c @@ -19,7 +19,7 @@ #define ENET_BUILDING_LIB 1 #include "enet/enet.h" -#ifdef __APPLE__ +#if defined(__APPLE__) #ifdef HAS_POLL #undef HAS_POLL #endif @@ -44,9 +44,7 @@ #ifndef HAS_GETNAMEINFO #define HAS_GETNAMEINFO 1 #endif -#endif - -#ifdef __vita__ +#elif defined(__vita__) #ifdef HAS_POLL #undef HAS_POLL #endif @@ -74,6 +72,10 @@ #ifndef HAS_GETNAMEINFO #define HAS_GETNAMEINFO 1 #endif +#else +#ifndef HAS_IOCTL +#define HAS_IOCTL 1 +#endif #endif #ifdef HAS_FCNTL