build: tevent_epoll.c is conditional on HAVE_EPOLL
authorAndrew Tridgell <tridge@samba.org>
Sun, 21 Mar 2010 02:14:24 +0000 (22:14 -0400)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:58 +0000 (20:26 +1000)
lib/tevent/wscript

index be5405469cc53fa2a758cec97bd1019141e9d417..0a6f01163e429332c73bf18b7c46da764ff1c24f 100644 (file)
@@ -27,10 +27,12 @@ def build(bld):
     bld.BUILD_SUBDIR(LIBREPLACE_DIR)
     bld.BUILD_SUBDIR(LIBTALLOC_DIR)
 
-    SRC = '''tevent.c tevent_debug.c tevent_epoll.c tevent_fd.c tevent_immediate.c
+    SRC = '''tevent.c tevent_debug.c tevent_fd.c tevent_immediate.c
              tevent_queue.c tevent_req.c tevent_select.c
              tevent_signal.c tevent_standard.c tevent_timed.c tevent_util.c tevent_wakeup.c'''
 
+    if bld.CONFIG_SET('HAVE_EPOLL'):
+        SRC += ' tevent_epoll.c'
 
     bld.SAMBA_LIBRARY('tevent',
                       SRC,