summaryrefslogtreecommitdiff
path: root/util/vgabios/pci-userspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/vgabios/pci-userspace.c')
-rw-r--r--util/vgabios/pci-userspace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/vgabios/pci-userspace.c b/util/vgabios/pci-userspace.c
index 7578e6f4a8..bc71a61594 100644
--- a/util/vgabios/pci-userspace.c
+++ b/util/vgabios/pci-userspace.c
@@ -2,11 +2,16 @@
#include <pci/pci.h>
#include "pci.h"
+#ifdef PCI_LIB_VERSION
+#define LIBPCI_CHECK_VERSION(major,minor,micro) \
+ ((((major) << 16) | ((minor) << 8) | (micro)) <= PCI_LIB_VERSION)
+#else
#define LIBPCI_CHECK_VERSION(major,minor,micro) \
( (LIBPCI_MAJOR_VERSION > (major)) || \
(LIBPCI_MAJOR_VERSION == (major) && LIBPCI_MINOR_VERSION > (minor)) || \
(LIBPCI_MAJOR_VERSION == (major) && LIBPCI_MINOR_VERSION == (minor)) && \
LIBPCI_MICRO_VERSION >= (micro) )
+#endif
#define PCITAG struct pci_filter *