summaryrefslogtreecommitdiffstats
path: root/runtime/nsd_ptcp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-04-19 14:56:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-04-19 14:56:11 +0200
commit11ab3c800043b036132b0fc96d20bcba637a72b6 (patch)
tree1c5b3aea28b51dda271af74cf85113d8cb04db83 /runtime/nsd_ptcp.c
parent90880b55689a14ca59cc5eb6ad937401cfabc3e0 (diff)
downloadrsyslog-11ab3c800043b036132b0fc96d20bcba637a72b6.tar.gz
rsyslog-11ab3c800043b036132b0fc96d20bcba637a72b6.tar.xz
rsyslog-11ab3c800043b036132b0fc96d20bcba637a72b6.zip
bugfix: netstream ptcp support class was not correctly build on systems without epoll() support
Diffstat (limited to 'runtime/nsd_ptcp.c')
-rw-r--r--runtime/nsd_ptcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/nsd_ptcp.c b/runtime/nsd_ptcp.c
index 744955c7..ca00749c 100644
--- a/runtime/nsd_ptcp.c
+++ b/runtime/nsd_ptcp.c
@@ -825,7 +825,9 @@ ENDObjClassInit(nsd_ptcp)
BEGINmodExit
CODESTARTmodExit
+# ifdef HAVE_EPOLL_CREATE /* module only available if epoll() is supported! */
nsdpoll_ptcpClassExit();
+# endif
nsdsel_ptcpClassExit();
nsd_ptcpClassExit();
ENDmodExit
@@ -844,7 +846,9 @@ CODESTARTmodInit
/* Initialize all classes that are in our module - this includes ourselfs */
CHKiRet(nsd_ptcpClassInit(pModInfo)); /* must be done after tcps_sess, as we use it */
CHKiRet(nsdsel_ptcpClassInit(pModInfo)); /* must be done after tcps_sess, as we use it */
+# ifdef HAVE_EPOLL_CREATE /* module only available if epoll() is supported! */
CHKiRet(nsdpoll_ptcpClassInit(pModInfo)); /* must be done after tcps_sess, as we use it */
+# endif
ENDmodInit
/* vi:set ai:
*/