From e022789daaab1c82b0a3e955f1dc4b34a6b03285 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 11 Feb 2008 21:52:17 +0100 Subject: [PATCH] Die if DNS queries are requested, but not available. --- lspci.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5