mirror of https://github.com/nodejs/node.git
Use the Apple recommended way of detecting OSX Versions
to enable KQueue, rather than deciding based on the compiler version.pull/22966/head
parent
c8f9728de7
commit
5a00d9d50f
|
@ -1819,7 +1819,7 @@ int main(int argc, char *argv[]) {
|
|||
// TODO(Ryan) I'm experiencing abnormally high load using Solaris's
|
||||
// EVBACKEND_PORT. Temporarally forcing select() until I debug.
|
||||
ev_default_loop(EVBACKEND_POLL);
|
||||
#elif defined(__APPLE_CC__) && __APPLE_CC__ >= 5659
|
||||
#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
||||
ev_default_loop(EVBACKEND_KQUEUE);
|
||||
#else
|
||||
ev_default_loop(EVFLAG_AUTO);
|
||||
|
|
Loading…
Reference in New Issue