From 7e38fe433aa3ac3857c11ed41fee789ff7d6d048 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Fri, 6 Jul 2012 12:25:54 +0000 Subject: Fix compilation with gcc 4.3.2 and without GEOIP svn path=/trunk/; revision=43587 --- epan/ipproto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/ipproto.c') diff --git a/epan/ipproto.c b/epan/ipproto.c index 3b03de014a..d5b04f0f85 100644 --- a/epan/ipproto.c +++ b/epan/ipproto.c @@ -285,7 +285,8 @@ const char *ipprotostr(const int proto) { * XXX - have another flag for resolving network-layer * protocol names? */ - if (gbl_resolv_flags != 0) { + if (gbl_resolv_flags.mac_name || gbl_resolv_flags.network_name || + gbl_resolv_flags.transport_name || gbl_resolv_flags.concurrent_dns) { static char buf[128]; struct protoent *pe; -- cgit v1.2.3