diff --git a/ChangeLog b/ChangeLog index 2e5aa8c06f..c6db03fae3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed May 20 15:33:27 CEST 2009 Daniel Veillard + + * src/pci.c: small portability patch + Wed May 20 09:10:28 CEST 2009 Daniel Veillard * src/lxc_driver.c: fix a couple of error code, patch by diff --git a/src/pci.c b/src/pci.c index ed64d6881a..3ffa0aa5e6 100644 --- a/src/pci.c +++ b/src/pci.c @@ -38,6 +38,11 @@ #include "util.h" #include "virterror_internal.h" +/* avoid compilation breakage on some systems */ +#ifndef MODPROBE +#define MODPROBE "modprobe" +#endif + #define PCI_SYSFS "/sys/bus/pci/" #define PCI_ID_LEN 10 /* "XXXX XXXX" */ #define PCI_ADDR_LEN 13 /* "XXXX:XX:XX.X" */