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
This commit is contained in:
thompsa 2009-02-26 20:54:43 +00:00
parent ffab68620f
commit 4a4a263618

View File

@ -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.