summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/system/select.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/include/system/select.h b/source4/include/system/select.h
index 2b800fd270..c0595492cd 100644
--- a/source4/include/system/select.h
+++ b/source4/include/system/select.h
@@ -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