From 5aaefeb37f18344e8506678346b644ad73f1cff2 Mon Sep 17 00:00:00 2001 From: jxiong Date: Tue, 5 Feb 2008 08:38:56 +0000 Subject: [PATCH] Patch to remove the warning of compiling for interval_tree.c b=11300 r=shadow --- lustre/ldlm/interval_tree.c | 7 +++++++ lustre/tests/it_test.c | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lustre/ldlm/interval_tree.c b/lustre/ldlm/interval_tree.c index e119fff..bedf5b3 100644 --- a/lustre/ldlm/interval_tree.c +++ b/lustre/ldlm/interval_tree.c @@ -25,6 +25,13 @@ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * license text for more details. */ +#ifdef __KERNEL__ +# include +#else +# include +# include +#endif +#include #include enum { diff --git a/lustre/tests/it_test.c b/lustre/tests/it_test.c index 9e45671..dae233b 100644 --- a/lustre/tests/it_test.c +++ b/lustre/tests/it_test.c @@ -7,9 +7,6 @@ #include #include -/* warning remove */ -#undef EXPORT_SYMBOL -#define EXPORT_SYMBOL(a) #include <../ldlm/interval_tree.c> #define dprintf(fmt, args...) //printf(fmt, ##args) -- 1.8.3.1