summaryrefslogtreecommitdiff
path: root/geoip.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-11 14:34:16 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-11 14:34:16 +0200
commit5cbeddbe19f6001d540b062deb3618200c8ca372 (patch)
treee92ebd16150361d1337af69d35c6c3a6fc09f973 /geoip.h
parentaae407f55ffb2ce5211898559b81898af8d9d994 (diff)
configure, netsniff-ng: if no libgeopip, do not link against libz
In netsniff-ng, we only use libz in combination with libgeoip, so if we lack either one of them, do not link against the other either. This would be a waste otherwise. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'geoip.h')
-rw-r--r--geoip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/geoip.h b/geoip.h
index c84b335..3a49b2b 100644
--- a/geoip.h
+++ b/geoip.h
@@ -7,7 +7,7 @@
#include "config.h"
#include "die.h"
-#ifdef HAVE_GEOIP
+#if defined(HAVE_GEOIP) && defined(HAVE_LIBZ)
extern void init_geoip(int enforce);
extern void update_geoip(void);
extern int geoip_working(void);