From 5a26b5fd7bf11ca93d54fe7dc24b3423fb7d89b2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 19 Dec 2007 14:51:17 +0000 Subject: iptables and NO_SHARED_LIBS/dlfcn.h if NO_SHARED_LIBS is defined, then iptables shouldnt even include dlfcn.h. otherwise you hit a build failure when using toolchains that do not provide dlfcn.h because they do not support shared objects. Signed-Off-By: Mike Frysinger --- xtables.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xtables.c') diff --git a/xtables.c b/xtables.c index 3cc864b2..b8c2c6f4 100644 --- a/xtables.c +++ b/xtables.c @@ -16,7 +16,6 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include #include #include #include @@ -31,6 +30,10 @@ #include +#ifndef NO_SHARED_LIBS +#include +#endif + #define NPROTO 255 #ifndef PROC_SYS_MODPROBE -- cgit v1.2.3