]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/pci.c: small portability patch
authorDaniel Veillard <veillard@redhat.com>
Wed, 20 May 2009 13:34:15 +0000 (13:34 +0000)
committerDaniel Veillard <veillard@redhat.com>
Wed, 20 May 2009 13:34:15 +0000 (13:34 +0000)
daniel

ChangeLog
src/pci.c

index 2e5aa8c06f8dd2bd9ae67cb3ae6ac27298433226..c6db03fae3c0d19059b821a13299b501c32c5756 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed May 20 15:33:27 CEST 2009 Daniel Veillard <veillard@redhat.com>
+
+       * src/pci.c: small portability patch
+
 Wed May 20 09:10:28 CEST 2009 Daniel Veillard <veillard@redhat.com>
 
        * src/lxc_driver.c: fix a couple of error code, patch by
index ed64d6881af4bf0a50190e30a4b85d1330d9119b..3ffa0aa5e6c27523ff2e6e7989d5743aa2f410fc 100644 (file)
--- a/src/pci.c
+++ b/src/pci.c
 #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" */