diff options
author | Volker Lendecke <vl@samba.org> | 2013-12-13 11:59:43 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-17 12:38:08 +0100 |
commit | e7d4b7deda2fac7a7dd86dad84bafcae8085ff80 (patch) | |
tree | e69309fe32d18da5c954b453cc6eba2b5f5ddd43 /lib/tevent/tevent_standard.c | |
parent | 7fe5584e2a59584431cb2ddf8a4da22bfb924454 (diff) | |
download | samba-e7d4b7deda2fac7a7dd86dad84bafcae8085ff80.tar.gz |
tevent: Only build "std_fallback_to_poll" when epoll is around
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tevent/tevent_standard.c')
-rw-r--r-- | lib/tevent/tevent_standard.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c index 785d68d99f6..a050901fa3f 100644 --- a/lib/tevent/tevent_standard.c +++ b/lib/tevent/tevent_standard.c @@ -54,6 +54,7 @@ static const struct tevent_ops std_event_ops = { Move us to using poll instead. If we return false here, caller should abort(). */ +#ifdef HAVE_EPOLL static bool std_fallback_to_poll(struct tevent_context *ev, bool replay) { void *glue_ptr = talloc_parent(ev->ops); @@ -100,6 +101,7 @@ static bool std_fallback_to_poll(struct tevent_context *ev, bool replay) return true; } +#endif static int std_event_loop_once(struct tevent_context *ev, const char *location) { |