mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix compilation on osx
This commit is contained in:
parent
bac906c761
commit
2b0a2c4519
4
event.c
4
event.c
@ -2114,7 +2114,6 @@ evthread_notify_base_default(struct event_base *base)
|
||||
return (r < 0 && errno != EAGAIN) ? -1 : 0;
|
||||
}
|
||||
|
||||
#if defined(_EVENT_HAVE_EVENTFD) && defined(_EVENT_HAVE_SYS_EVENTFD_H)
|
||||
/* Helper callback: wake an event_base from another thread. This version
|
||||
* assumes that you have a working eventfd() implementation. */
|
||||
static int
|
||||
@ -2128,7 +2127,6 @@ evthread_notify_base_eventfd(struct event_base *base)
|
||||
|
||||
return (r < 0) ? -1 : 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Tell the thread currently running the event_loop for base (if any) that it
|
||||
* needs to stop waiting in its dispatch function (if it is) and process all
|
||||
@ -2906,7 +2904,6 @@ event_set_mem_functions(void *(*malloc_fn)(size_t sz),
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(_EVENT_HAVE_EVENTFD) && defined(_EVENT_HAVE_SYS_EVENTFD_H)
|
||||
static void
|
||||
evthread_notify_drain_eventfd(evutil_socket_t fd, short what, void *arg)
|
||||
{
|
||||
@ -2922,7 +2919,6 @@ evthread_notify_drain_eventfd(evutil_socket_t fd, short what, void *arg)
|
||||
base->is_notify_pending = 0;
|
||||
EVBASE_RELEASE_LOCK(base, th_base_lock);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
evthread_notify_drain_default(evutil_socket_t fd, short what, void *arg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user