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