Override default backend for OSX
This commit is contained in:
parent
02b43d4ce8
commit
bfb4e5e486
@ -218,7 +218,13 @@ int uv_close(uv_handle_t* handle) {
|
|||||||
void uv_init(uv_alloc_cb cb) {
|
void uv_init(uv_alloc_cb cb) {
|
||||||
assert(cb);
|
assert(cb);
|
||||||
alloc_cb = cb;
|
alloc_cb = cb;
|
||||||
ev_default_loop(0);
|
|
||||||
|
// Initialize the default ev loop.
|
||||||
|
#if 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);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user