summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/Osd
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-05-13 16:59:46 +0000
committerjhb <jhb@FreeBSD.org>2003-05-13 16:59:46 +0000
commitbc2a857823c575cc2864eafc2bbfe7c4c0d733b1 (patch)
treea3f137a7a6dc836703d6966958c183ddc0f1edbf /sys/dev/acpica/Osd
parentc8f885429c28e58cf75a312c4db24465adf3b789 (diff)
downloadFreeBSD-src-bc2a857823c575cc2864eafc2bbfe7c4c0d733b1.zip
FreeBSD-src-bc2a857823c575cc2864eafc2bbfe7c4c0d733b1.tar.gz
Add some extra #ifdef stubs so that this compiles on 4.8.
Approved by: re (rwatson/bmah)
Diffstat (limited to 'sys/dev/acpica/Osd')
-rw-r--r--sys/dev/acpica/Osd/OsdHardware.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/acpica/Osd/OsdHardware.c b/sys/dev/acpica/Osd/OsdHardware.c
index 5c38cbf..46deb968 100644
--- a/sys/dev/acpica/Osd/OsdHardware.c
+++ b/sys/dev/acpica/Osd/OsdHardware.c
@@ -36,7 +36,11 @@
#include <machine/bus_pio.h>
#include <machine/bus.h>
#include <machine/pci_cfgreg.h>
+#if __FreeBSD_version >= 500000
#include <dev/pci/pcireg.h>
+#else
+#include <pci/pcireg.h>
+#endif
/*
* ACPICA's rather gung-ho approach to hardware resource ownership is a little
OpenPOWER on IntegriCloud