From 5a00d9d50f708135fb042f83f4f8b294bcd538cd Mon Sep 17 00:00:00 2001 From: Paul Querna Date: Thu, 16 Sep 2010 15:27:25 -0700 Subject: [PATCH] Use the Apple recommended way of detecting OSX Versions to enable KQueue, rather than deciding based on the compiler version. --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 485bd7a0328..63730c5269d 100644 --- a/src/node.cc +++ b/src/node.cc @@ -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);