diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-02-26 20:54:43 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-02-26 20:54:43 +0000 |
commit | 4a4a263618990b8afff0492a5ce9d9b350097834 (patch) | |
tree | 137deb47ba0adf3e70acc363d86777ea332193ec /sys | |
parent | ffab68620f121460586af38654ee5be9efaa11f3 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/conf/kern.pre.mk | 6 |
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. |