From: Martin Mares Date: Mon, 11 Feb 2008 20:52:17 +0000 (+0100) Subject: Die if DNS queries are requested, but not available. X-Git-Tag: v3.0.0~1^2~53 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e022789daaab1c82b0a3e955f1dc4b34a6b03285;p=pciutils.git Die if DNS queries are requested, but not available. --- diff --git a/lspci.c b/lspci.c index 905c300..5047559 100644 --- a/lspci.c +++ b/lspci.c @@ -2733,12 +2733,18 @@ main(int argc, char **argv) case 'D': opt_domains = 2; break; +#ifdef PCI_USE_DNS case 'q': opt_query_dns++; break; case 'Q': opt_query_all = 1; break; +#else + case 'q': + case 'Q': + die("DNS queries are not available in this version"); +#endif default: if (parse_generic_option(i, pacc, optarg)) break;