$OpenBSD: patch-common_Makefile,v 1.1.1.1 2008/01/19 23:55:19 todd Exp $ --- common/Makefile.orig Tue Feb 6 22:02:00 2007 +++ common/Makefile Mon Nov 12 23:59:17 2007 @@ -41,7 +41,13 @@ LD=ld endif DEFINES=-D__KERNEL__ -INCLUDES=-nostdinc -iwithprefix include -I. -I.. + +ifdef CONFIG_OPENBSD + INCLUDES=-I. -I.. +else + INCLUDES=-nostdinc -iwithprefix include -I. -I.. +endif + TOOLS_CFLAGS=-Wall -O2 -Werror -g COMMON_CFLAGS=-Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror ifeq ($(ARCH), x86_64)