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 --- iptables-save.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'iptables-save.c') diff --git a/iptables-save.c b/iptables-save.c index 0765361d..be5e8936 100644 --- a/iptables-save.c +++ b/iptables-save.c @@ -11,12 +11,15 @@ #include #include #include -#include #include #include #include "libiptc/libiptc.h" #include "iptables.h" +#ifndef NO_SHARED_LIBS +#include +#endif + static int binary = 0, counters = 0; static struct option options[] = { -- cgit v1.2.3