1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r12844: don't include system headers directly

metze
(This used to be commit 75a98047d6)
This commit is contained in:
Stefan Metzmacher
2006-01-11 15:07:14 +00:00
committed by Gerald (Jerry) Carter
parent 2e8937c334
commit b3f2db5e01
2 changed files with 9 additions and 9 deletions

View File

@ -28,3 +28,11 @@
#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

View File

@ -34,15 +34,6 @@
#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