Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -1577,11 +1577,14 @@ darwin*) AC_MSG_CHECKING(whether we are compiling for macOS) AC_EGREP_CPP(egrep_cpp_yes, [ #include - #if defined(TARGET_OS_OSX) && TARGET_OS_OSX + #if (!defined(TARGET_OS_IPHONE) || \ + !TARGET_OS_IPHONE) && \ + (!defined(TARGET_OS_SIMULATOR) || \ + !TARGET_OS_SIMULATOR) egrep_cpp_yes #endif ], [ AC_MSG_RESULT(yes) have_processes="yes" Index: src/platform.h ================================================================== --- src/platform.h +++ src/platform.h @@ -103,12 +103,11 @@ #if defined(__APPLE__) # include # if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || \ (defined(TARGET_OS_SIMULATOR) && TARGET_OS_SIMULATOR) # define OF_IOS -# endif -# if defined(TARGET_OS_OSX) && TARGET_OS_OSX +# else # define OF_MACOS # endif #elif defined(__linux__) # define OF_LINUX #elif defined(_WIN32)