From 9a2da3bc02feed33d86ec837b64bc4295f86bb51 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Wed, 19 Dec 2007 14:51:17 +0000 Subject: [patch] 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 --- ip6tables-save.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ip6tables-save.c') diff --git a/ip6tables-save.c b/ip6tables-save.c index d828404..af86f4b 100644 --- a/ip6tables-save.c +++ b/ip6tables-save.c @@ -11,13 +11,16 @@ #include #include #include -#include #include #include #include #include "libiptc/libip6tc.h" #include "ip6tables.h" +#ifndef NO_SHARED_LIBS +#include +#endif + static int binary = 0, counters = 0; static struct option options[] = { -- cgit v1.2.3