]> mj.ucw.cz Git - pciutils.git/commitdiff
Die if DNS queries are requested, but not available.
authorMartin Mares <mj@ucw.cz>
Mon, 11 Feb 2008 20:52:17 +0000 (21:52 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 11 Feb 2008 20:52:17 +0000 (21:52 +0100)
lspci.c

diff --git a/lspci.c b/lspci.c
index 905c30072af0361a1de090a1fb532b0303e77dc6..5047559367132e2573b0052a61c778907e34705b 100644 (file)
--- 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;