Skip to contentSkip to conversation

ioemu: Fix build when pciutils-dev is not installed

PATCH New George Dunlap 1 participant 1 message Mar 17, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioemu: Fix build when pciutils-dev is not installed

Missing an #ifdef CONFIG_PASSTHROUGH in vl.c

vl.c +2 -0
index 9b9f7d5..6c0ffb3 100644
@@ -5894,12 +5894,14 @@ int main(int argc, char **argv, char **envp)
         }
     }
 
+#ifdef CONFIG_PASSTHROUGH
     for (i = 0; i < nb_pci_emulation; i++) {
         if(pci_emulation_add(pci_emulation_config_text[i]) < 0) {
             fprintf(stderr, "Warning: could not add PCI device %s\n",
                     pci_emulation_config_text[i]);
         }
     }
+#endif
 
     if (strlen(direct_pci_str) > 0)
         direct_pci = direct_pci_str;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel