Fix libevent init.
This commit is contained in:
parent
80dee0c020
commit
b9adaa4f8b
@ -47,11 +47,7 @@ int net_initialize()
|
|||||||
}
|
}
|
||||||
#endif /* WINSOCK */
|
#endif /* WINSOCK */
|
||||||
|
|
||||||
#ifdef LIBEVENT_1_4
|
|
||||||
net_evbase = event_base_new();
|
|
||||||
#else
|
|
||||||
net_evbase = event_init();
|
net_evbase = event_init();
|
||||||
#endif
|
|
||||||
if (!net_evbase)
|
if (!net_evbase)
|
||||||
{
|
{
|
||||||
LOG_ERROR("Unable to initialize libevent.");
|
LOG_ERROR("Unable to initialize libevent.");
|
||||||
|
Loading…
Reference in New Issue
Block a user