From c9948207bada22b437d9a3aaf6597931d40dc539 Mon Sep 17 00:00:00 2001 From: short <> Date: Mon, 6 Oct 2003 09:58:29 +0000 Subject: [PATCH] Prevent -I/usr/include during Linux kernel module compilation. --- include/Makefile.am | 9 ++++++++- kernel/Linux/2.4/lufs.h | 2 +- kernel/Linux/2.5/lufs.h | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/include/Makefile.am b/include/Makefile.am index d9ab606..6158d62 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1 +1,8 @@ -nobase_include_HEADERS = lufs/proto.h lufs/fs.h \ No newline at end of file +nobase_include_HEADERS = lufs/proto.h lufs/fs.h + +basedir=$(datadir)/lufs +src24dir=$(basedir)/2.4 +src25dir=$(basedir)/2.5 + +src24_HEADERS = lufs/proto.h +src25_HEADERS = lufs/proto.h diff --git a/kernel/Linux/2.4/lufs.h b/kernel/Linux/2.4/lufs.h index ca8e01e..237b45c 100644 --- a/kernel/Linux/2.4/lufs.h +++ b/kernel/Linux/2.4/lufs.h @@ -27,7 +27,7 @@ #include #include -#include "lufs/proto.h" +#include "proto.h" #undef TRACE #undef WARN diff --git a/kernel/Linux/2.5/lufs.h b/kernel/Linux/2.5/lufs.h index 1275099..72bacf8 100644 --- a/kernel/Linux/2.5/lufs.h +++ b/kernel/Linux/2.5/lufs.h @@ -27,7 +27,7 @@ #include #include -#include "../../../include/lufs/proto.h" +#include "proto.h" #undef TRACE #undef WARN -- 1.8.3.1