summaryrefslogtreecommitdiffstats
path: root/runtime/nsdpoll_ptcp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-02 10:40:23 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-02 10:40:23 +0100
commit5402ba982fd8c9bb9ce7fab43ddabaa174ab0794 (patch)
tree812f534d2e39ccd345edac0975c732686b4d7ad5 /runtime/nsdpoll_ptcp.c
parenta16c60e782ebed11787e0b5dbd73e83797771b3c (diff)
downloadrsyslog-5402ba982fd8c9bb9ce7fab43ddabaa174ab0794.tar.gz
rsyslog-5402ba982fd8c9bb9ce7fab43ddabaa174ab0794.tar.xz
rsyslog-5402ba982fd8c9bb9ce7fab43ddabaa174ab0794.zip
bugfix: failed to compile on systems without epoll support
Diffstat (limited to 'runtime/nsdpoll_ptcp.c')
-rw-r--r--runtime/nsdpoll_ptcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/nsdpoll_ptcp.c b/runtime/nsdpoll_ptcp.c
index 85aac04c..51006707 100644
--- a/runtime/nsdpoll_ptcp.c
+++ b/runtime/nsdpoll_ptcp.c
@@ -24,6 +24,8 @@
*/
#include "config.h"
+#ifdef HAVE_EPOLL_CREATE /* this module requires epoll! */
+
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
@@ -280,5 +282,7 @@ BEGINObjClassInit(nsdpoll_ptcp, 1, OBJ_IS_CORE_MODULE) /* class, version */
/* set our own handlers */
ENDObjClassInit(nsdpoll_ptcp)
+#endif /* #ifdef HAVE_EPOLL_CREATE this module requires epoll! */
+
/* vi:set ai:
*/