TEVENT_OBJ="$TEVENT_OBJ tevent_epoll.o"
SMB_ENABLE(TEVENT_EPOLL,YES)
AC_DEFINE(HAVE_EPOLL, 1, [Whether epoll available])
- #TODO: remove HAVE_EVENTS_EPOLL and use HAVE_EPOLL
- AC_DEFINE(HAVE_EVENTS_EPOLL, 1, [Whether epoll available])
# check for native Linux AIO interface
AC_CHECK_HEADERS(libaio.h)
{
tevent_select_init();
tevent_standard_init();
-#if HAVE_EVENTS_EPOLL
+#ifdef HAVE_EPOLL
tevent_epoll_init();
#endif
-#if HAVE_LINUX_AIO
+#ifdef HAVE_LINUX_AIO
tevent_aio_init();
#endif
}
bool tevent_standard_init(void);
bool tevent_select_init(void);
-#if HAVE_EVENTS_EPOLL
+#ifdef HAVE_EPOLL
bool tevent_epoll_init(void);
#endif
-#if HAVE_LINUX_AIO
+#ifdef HAVE_LINUX_AIO
bool tevent_aio_init(void);
#endif
#include "replace.h"
#include "system/filesys.h"
#include "system/network.h"
-#include "system/select.h" /* needed for HAVE_EVENTS_EPOLL */
+#include "system/select.h"
#include "tevent.h"
#include "tevent_util.h"
#include "tevent_internal.h"
};
/* use epoll if it is available */
-#if HAVE_EVENTS_EPOLL
+#if HAVE_EPOLL
/*
called when a epoll call fails, and we should fallback
to using select