summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 0765361..be5e893 100644
--- a/iptables-save.c
+++ b/iptables-save.c
@@ -11,12 +11,15 @@
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
-#include <dlfcn.h>
#include <time.h>
#include <netdb.h>
#include "libiptc/libiptc.h"
#include "iptables.h"
+#ifndef NO_SHARED_LIBS
+#include <dlfcn.h>
+#endif
+
static int binary = 0, counters = 0;
static struct option options[] = {