From 7f6b471bf56d1ced716a21bc3a7444b2fab985ea Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 5 Nov 2010 11:44:41 +0100 Subject: provide clear error message if platform does not support imptcp --- plugins/imptcp/imptcp.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins') 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 #include #include -- cgit