summaryrefslogtreecommitdiffstats
path: root/ip6tables-save.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-12-19 14:51:17 +0000
committerPatrick McHardy <kaber@trash.net>2007-12-19 14:51:17 +0000
commit5a26b5fd7bf11ca93d54fe7dc24b3423fb7d89b2 (patch)
tree7c852a9392996ca1bff4eaf6b42823ed746b1935 /ip6tables-save.c
parent5e9eaed23d0cf1cfdd49c88e68beb43e611f0191 (diff)
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 <vapier@gentoo.org>
Diffstat (limited to 'ip6tables-save.c')
-rw-r--r--ip6tables-save.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ip6tables-save.c b/ip6tables-save.c
index d828404c..af86f4b3 100644
--- a/ip6tables-save.c
+++ b/ip6tables-save.c
@@ -11,13 +11,16 @@
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
-#include <dlfcn.h>
#include <time.h>
#include <netdb.h>
#include <arpa/inet.h>
#include "libiptc/libip6tc.h"
#include "ip6tables.h"
+#ifndef NO_SHARED_LIBS
+#include <dlfcn.h>
+#endif
+
static int binary = 0, counters = 0;
static struct option options[] = {