summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_standard.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-12-13 11:59:43 +0100
committerStefan Metzmacher <metze@samba.org>2014-01-17 12:38:08 +0100
commite7d4b7deda2fac7a7dd86dad84bafcae8085ff80 (patch)
treee69309fe32d18da5c954b453cc6eba2b5f5ddd43 /lib/tevent/tevent_standard.c
parent7fe5584e2a59584431cb2ddf8a4da22bfb924454 (diff)
downloadsamba-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.c2
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)
{