]> granicus.if.org Git - libevent/commitdiff
Fix compilation on osx
authorNick Mathewson <nickm@torproject.org>
Fri, 10 Feb 2012 23:04:04 +0000 (18:04 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 10 Feb 2012 23:04:04 +0000 (18:04 -0500)
event.c

diff --git a/event.c b/event.c
index 6192302610295912cd40233f1735e70c35668951..b40058b92e2a15b720264d44af7666244d7977dd 100644 (file)
--- a/event.c
+++ b/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)