From 4a4a263618990b8afff0492a5ce9d9b350097834 Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 26 Feb 2009 20:54:43 +0000 Subject: 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 --- sys/conf/kern.pre.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/conf/kern.pre.mk') 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. -- cgit v1.1