From 9b93e7e5b2fb898fff1815345ac0a63087a74758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 15 Nov 2017 19:58:39 +0000 Subject: Explain where GeoIP_free comes from MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0a354cde4587a041bdb1fa4147bd88eed24ceb76 Reviewed-on: https://code.wireshark.org/review/24356 Reviewed-by: João Valverde --- acinclude.m4 | 2 +- cmakeconfig.h.in | 2 +- epan/geoip_db.c | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 70cec35044..66e4adc7f4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1163,7 +1163,7 @@ AC_DEFUN([AC_WIRESHARK_GEOIP_CHECK], ) AC_CHECK_LIB(GeoIP, GeoIP_free, [ - AC_DEFINE(HAVE_GEOIP_FREE, 1, [Define if GeoIP has GeoIP_free (not available upstream with 1.6.10 or earlier)]) + AC_DEFINE(HAVE_GEOIP_FREE, 1, [Define if GeoIP has GeoIP_free]) ],, ) fi diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index ec715cef29..aee8a4a494 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -68,7 +68,7 @@ /* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */ #cmakedefine HAVE_GEOIP_V6 1 -/* Define if GeoIP has GeoIP_free (not available upstream with 1.6.10 or earlier) */ +/* Define if GeoIP has GeoIP_free */ #cmakedefine HAVE_GEOIP_FREE 1 /* Define to 1 if you have the header file. */ diff --git a/epan/geoip_db.c b/epan/geoip_db.c index 923a4fb2ae..164dec0496 100644 --- a/epan/geoip_db.c +++ b/epan/geoip_db.c @@ -48,6 +48,10 @@ /* This needs to match NUM_GEOIP_COLS in hostlist_table.h */ #define MAX_GEOIP_DBS 13 +/* + * GeoIP_free is patched into our GeoIP distribution on Windows. + * See bug 13598. + */ #ifndef HAVE_GEOIP_FREE #define GeoIP_free free #endif -- cgit v1.2.3