summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-04-14 18:37:57 +0200
committerPatrick McHardy <kaber@trash.net>2008-04-15 13:48:13 +0200
commitcb25af809a8734c4766b6bfa4cca99596cbf01db (patch)
treec681fea68825598cb5fdc382d2ede930e9f24e30
parent2c0a0c9eba1d1ab39dcde54bc822d4788f9531fc (diff)
Wrap dlopen code into NO_SHARED_LIBS
-rw-r--r--xtables.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xtables.c b/xtables.c
index b988054b..743c07bf 100644
--- a/xtables.c
+++ b/xtables.c
@@ -305,6 +305,7 @@ void parse_interface(const char *arg, char *vianame, unsigned char *mask)
}
}
+#ifndef NO_SHARED_LIBS
static void *load_extension(const char *search_path, const char *prefix,
const char *name, bool is_target)
{
@@ -353,6 +354,7 @@ static void *load_extension(const char *search_path, const char *prefix,
return NULL;
}
+#endif
struct xtables_match *find_match(const char *name, enum xt_tryload tryload,
struct xtables_rule_match **matches)