summaryrefslogtreecommitdiff
path: root/util/vgabios/pci-userspace.c
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2009-05-27 11:39:16 +0000
committerLuc Verhaegen <libv@skynet.be>2009-05-27 11:39:16 +0000
commite6e899dde951823ebc9abf997a6af06debac82a3 (patch)
tree348450ad2317cfce4a79595063493a272c240003 /util/vgabios/pci-userspace.c
parentbab4f92c8bdde168ad186c054967e36dc5477d10 (diff)
downloadcoreboot-e6e899dde951823ebc9abf997a6af06debac82a3.tar.xz
util/vgabios: build/warning fixes.
Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4312 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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 *