Don't define geoip_db_get_paths() unless we have GeoIP - we don't use it

unless it's defined.

svn path=/trunk/; revision=46791
This commit is contained in:
Guy Harris 2012-12-26 20:37:50 +00:00
parent d520e82bd2
commit d4b622de36
2 changed files with 4 additions and 5 deletions

View File

@ -596,11 +596,6 @@ geoip_db_lookup_ipv6(guint dbnum _U_, guint32 addr _U_, const char *not_found) {
return not_found;
}
gchar *
geoip_db_get_paths(void) {
return "";
}
#endif /* HAVE_GEOIP */
/*

View File

@ -84,6 +84,8 @@ extern const char *geoip_db_lookup_ipv4(guint dbnum, guint32 addr, const char *n
*/
extern const char *geoip_db_lookup_ipv6(guint dbnum, struct e_in6_addr addr, const char *not_found);
#ifdef HAVE_GEOIP
/**
* Get all configured paths
*
@ -91,4 +93,6 @@ extern const char *geoip_db_lookup_ipv6(guint dbnum, struct e_in6_addr addr, con
*/
extern gchar *geoip_db_get_paths(void);
#endif /* HAVE_GEOIP */
#endif /* __GEOIP_DB_H__ */