Skip to content

Commit 5a00d9d

Browse files
pquernary
authored andcommitted
Use the Apple recommended way of detecting OSX Versions
to enable KQueue, rather than deciding based on the compiler version.
1 parent c8f9728 commit 5a00d9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ int main(int argc, char *argv[]) {
18191819
// TODO(Ryan) I'm experiencing abnormally high load using Solaris's
18201820
// EVBACKEND_PORT. Temporarally forcing select() until I debug.
18211821
ev_default_loop(EVBACKEND_POLL);
1822-
#elif defined(__APPLE_CC__) && __APPLE_CC__ >= 5659
1822+
#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
18231823
ev_default_loop(EVBACKEND_KQUEUE);
18241824
#else
18251825
ev_default_loop(EVFLAG_AUTO);

0 commit comments

Comments
 (0)