Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -1577,18 +1577,31 @@ ]) CHECK_BUILTIN_BSWAP(16) CHECK_BUILTIN_BSWAP(32) CHECK_BUILTIN_BSWAP(64) -case "$host" in - arm*-apple-darwin*) - have_processes="no" +case "$host_os" in + darwin*) + AC_MSG_CHECKING(whether we are compiling for macOS) + AC_EGREP_CPP(egrep_cpp_yes, [ + #include + + #if defined(TARGET_OS_MAC) && TARGET_OS_MAC + egrep_cpp_yes + #endif + ], [ + AC_MSG_RESULT(yes) + have_processes="yes" + ], [ + AC_MSG_RESULT(no) + have_processes="no" + ]) ;; - *-*-mingw*) + mingw*) have_processes="yes" ;; - *-*-msdosdjgpp*) + msdosdjgpp*) have_processes="no" ;; *) AC_HEADER_SYS_WAIT AC_CHECK_FUNCS(kill) Index: src/platform.h ================================================================== --- src/platform.h +++ src/platform.h @@ -103,11 +103,12 @@ #if defined(__APPLE__) # include # if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || \ (defined(TARGET_OS_SIMULATOR) && TARGET_OS_SIMULATOR) # define OF_IOS -# else +# endif +# if defined(TARGET_OS_MAC) && TARGET_OS_MAC # define OF_MACOS # endif #elif defined(__linux__) # define OF_LINUX #elif defined(_WIN32)