summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/oltr
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-08-22 15:28:22 +0000
committerimp <imp@FreeBSD.org>2003-08-22 15:28:22 +0000
commitd804accbc1d46d82de1fd86bae2c50ce1826d325 (patch)
treee7f316c5eee9b5edbcf28659cffd046c65e5aa15 /sys/contrib/dev/oltr
parent938b032745fc9a067e96db741bdd1908c969cc25 (diff)
downloadFreeBSD-src-d804accbc1d46d82de1fd86bae2c50ce1826d325.zip
FreeBSD-src-d804accbc1d46d82de1fd86bae2c50ce1826d325.tar.gz
Prefer new location of pci include files (which have only been in the
tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
Diffstat (limited to 'sys/contrib/dev/oltr')
-rw-r--r--sys/contrib/dev/oltr/if_oltr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/contrib/dev/oltr/if_oltr.c b/sys/contrib/dev/oltr/if_oltr.c
index f3109a1..235d981 100644
--- a/sys/contrib/dev/oltr/if_oltr.c
+++ b/sys/contrib/dev/oltr/if_oltr.c
@@ -74,8 +74,13 @@
#include <sys/bus.h>
#include <sys/rman.h>
+#if (__FreeBSD_version < 500000)
#include <pci/pcireg.h>
#include <pci/pcivar.h>
+#else
+#include <dev/pci/pcireg.h>
+#include <dev/pci/pcivar.h>
+#endif
#include "contrib/dev/oltr/trlld.h"
OpenPOWER on IntegriCloud