r12844: don't include system headers directly
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Jan 2006 15:07:14 +0000 (15:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:50:05 +0000 (13:50 -0500)
metze
(This used to be commit 75a98047d6829cadf4b9082bec2733055dad3465)

source4/include/system/select.h
source4/lib/events/events_standard.c

index 2b800fd27012370541c7a07015cef830036c307e..c0595492cd27df0e9c59d0353a6bd7646e6d4d56 100644 (file)
 #define SELECT_CAST
 #endif
 
+/* use epoll if it is available */
+#if defined(HAVE_EPOLL_CREATE) && defined(HAVE_SYS_EPOLL_H)
+#define WITH_EPOLL 1
+#endif
+
+#if WITH_EPOLL
+#include <sys/epoll.h>
+#endif
index df2368af3ea7ad5da5008da6f18d05fb02447430..974007b999eeff4865431698d7e045c29f903222 100644 (file)
 #include "lib/events/events.h"
 #include "lib/events/events_internal.h"
 
-/* use epoll if it is available */
-#if defined(HAVE_EPOLL_CREATE) && defined(HAVE_SYS_EPOLL_H)
-#define WITH_EPOLL 1
-#endif
-
-#if WITH_EPOLL
-#include <sys/epoll.h>
-#endif
-
 struct std_event_context {
        /* a pointer back to the generic event_context */
        struct event_context *ev;
@@ -73,6 +64,7 @@ struct std_event_context {
 
 static void std_event_loop_timer(struct std_event_context *std_ev);
 
+/* use epoll if it is available */
 #if WITH_EPOLL
 /*
   called when a epoll call fails, and we should fallback