summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.pre.mk
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-02-26 20:54:43 +0000
committerthompsa <thompsa@FreeBSD.org>2009-02-26 20:54:43 +0000
commit4a4a263618990b8afff0492a5ce9d9b350097834 (patch)
tree137deb47ba0adf3e70acc363d86777ea332193ec /sys/conf/kern.pre.mk
parentffab68620f121460586af38654ee5be9efaa11f3 (diff)
downloadFreeBSD-src-4a4a263618990b8afff0492a5ce9d9b350097834.zip
FreeBSD-src-4a4a263618990b8afff0492a5ce9d9b350097834.tar.gz
Allow the old usb stack to compile by adding the appropriate -I foo, this must
go before the standard -I$S to have the search happen before /sys/. Make this conditional on 'makeoptions WITH_LEGACY=1' in the kernel config. Prodded by: sam
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r--sys/conf/kern.pre.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index ee74a9e..30ba6a8 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -53,7 +53,11 @@ C_DIALECT= -std=c99
NOSTDINC= -nostdinc
.endif
-INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S
+.if defined(WITH_LEGACY)
+LEGACY_INC= -I$S/legacy
+.endif
+
+INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. ${LEGACY_INC} -I$S
# This hack lets us use the OpenBSD altq code without spamming a new
# include path into contrib'ed source files.
OpenPOWER on IntegriCloud