From 98657c45e95894a07ac9b9347adc370d19ff427a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 2 May 2008 17:32:39 -0700 Subject: [PATCH] Add build directory to include path. Otherwise generated headers (forward_t.h) will not be found at build time. --- datapath/linux-2.4/Makefile.in | 2 +- datapath/linux-2.6/Kbuild.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datapath/linux-2.4/Makefile.in b/datapath/linux-2.4/Makefile.in index ef3a545c..834600fe 100644 --- a/datapath/linux-2.4/Makefile.in +++ b/datapath/linux-2.4/Makefile.in @@ -68,7 +68,7 @@ ifeq (,$(CC)) endif CFLAGS = -DVERSION=\"$(VERSION)\" -O2 -g -CFLAGS += -I $(srcdir)/.. -I $(top_srcdir)/include +CFLAGS += -I $(srcdir)/.. -I $(builddir)/.. -I $(top_srcdir)/include ifeq ($(ARCH),) ARCH := $(shell uname -m | sed 's/i.86/i386/') endif diff --git a/datapath/linux-2.6/Kbuild.in b/datapath/linux-2.6/Kbuild.in index dbf7e645..5e7b9c46 100644 --- a/datapath/linux-2.6/Kbuild.in +++ b/datapath/linux-2.6/Kbuild.in @@ -9,7 +9,7 @@ include $(srcdir)/Modules.mk EXTRA_CFLAGS := -DVERSION=\"$(VERSION)\" EXTRA_CFLAGS += -I$(srcdir)/.. -EXTRA_CFLAGS += -I$(srcdir)/datapath +EXTRA_CFLAGS += -I$(builddir)/.. EXTRA_CFLAGS += -I$(top_srcdir)/include # These include directories have to go before -I$(KSRC)/include. -- 2.30.2