]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/names-net.c
Use DNS on all architectures except AIX.
[pciutils.git] / lib / names-net.c
index 167cd1fb10229b489974fd9f53d395bb9ec204a8..112e1ad4af73c26fb24b19eae9b9fee7a964f659 100644 (file)
@@ -8,13 +8,16 @@
 
 #include <string.h>
 #include <stdlib.h>
-#include <netinet/in.h>
-#include <arpa/nameser.h>
-#include <resolv.h>
 
 #include "internal.h"
 #include "names.h"
 
+#ifdef PCI_USE_DNS
+
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
+
 char
 *pci_id_net_lookup(struct pci_access *a, int cat, int id1, int id2, int id3, int id4)
 {
@@ -88,6 +91,15 @@ char
   return NULL;
 }
 
+#else
+
+char *pci_id_net_lookup(struct pci_access *a UNUSED, int cat UNUSED, int id1 UNUSED, int id2 UNUSED, int id3 UNUSED, int id4 UNUSED)
+{
+  return NULL;
+}
+
+#endif
+
 void
 pci_set_net_domain(struct pci_access *a, char *name, int to_be_freed)
 {