summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-11-05 11:44:41 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-11-05 11:44:41 +0100
commit7f6b471bf56d1ced716a21bc3a7444b2fab985ea (patch)
treeace12dbf7cadce6b60054190c0c8e72388421d43 /plugins
parentcb04fc3972ef983b9dd6a550e275639e73502527 (diff)
downloadrsyslog-7f6b471bf56d1ced716a21bc3a7444b2fab985ea.tar.gz
rsyslog-7f6b471bf56d1ced716a21bc3a7444b2fab985ea.tar.xz
rsyslog-7f6b471bf56d1ced716a21bc3a7444b2fab985ea.zip
provide clear error message if platform does not support imptcp
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imptcp/imptcp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/imptcp/imptcp.c b/plugins/imptcp/imptcp.c
index 6b14a80e..51f33bab 100644
--- a/plugins/imptcp/imptcp.c
+++ b/plugins/imptcp/imptcp.c
@@ -30,6 +30,13 @@
* A copy of the GPL can be found in the file "COPYING" in this distribution.
*/
#include "config.h"
+#if !defined(HAVE_EPOLL_CREATE)
+# error imptcp requires OS support for epoll - can not build
+ /* imptcp gains speed by using modern Linux capabilities. As such,
+ * it can only be build on platforms supporting the epoll API.
+ */
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>