* src/pci.c: small portability patch

daniel
This commit is contained in:
Daniel Veillard 2009-05-20 13:34:15 +00:00
parent 6a140adb78
commit d879d360eb
2 changed files with 9 additions and 0 deletions

View File

@ -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> 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 * src/lxc_driver.c: fix a couple of error code, patch by

View File

@ -38,6 +38,11 @@
#include "util.h" #include "util.h"
#include "virterror_internal.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_SYSFS "/sys/bus/pci/"
#define PCI_ID_LEN 10 /* "XXXX XXXX" */ #define PCI_ID_LEN 10 /* "XXXX XXXX" */
#define PCI_ADDR_LEN 13 /* "XXXX:XX:XX.X" */ #define PCI_ADDR_LEN 13 /* "XXXX:XX:XX.X" */