From: jxiong Date: Tue, 5 Feb 2008 08:38:56 +0000 (+0000) Subject: Patch to remove the warning of compiling for interval_tree.c X-Git-Tag: v1_8_0_110~792 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=5aaefeb37f18344e8506678346b644ad73f1cff2;p=fs%2Flustre-release.git Patch to remove the warning of compiling for interval_tree.c b=11300 r=shadow --- 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)