summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.pre.mk
diff options
context:
space:
mode:
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