Whamcloud - gitweb
Patch to remove the warning of compiling for interval_tree.c
authorjxiong <jxiong>
Tue, 5 Feb 2008 08:38:56 +0000 (08:38 +0000)
committerjxiong <jxiong>
Tue, 5 Feb 2008 08:38:56 +0000 (08:38 +0000)
b=11300
r=shadow

lustre/ldlm/interval_tree.c
lustre/tests/it_test.c

index e119fff..bedf5b3 100644 (file)
  *   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *   license text for more details.
  */
+#ifdef __KERNEL__
+# include <lustre_dlm.h>
+#else
+# include <liblustre.h>
+# include <libcfs/kp30.h>
+#endif
+#include <obd_support.h>
 #include <interval_tree.h>
 
 enum {
index 9e45671..dae233b 100644 (file)
@@ -7,9 +7,6 @@
 #include <time.h>
 #include <sys/time.h>
 
-/* warning remove */
-#undef EXPORT_SYMBOL
-#define EXPORT_SYMBOL(a)
 #include <../ldlm/interval_tree.c>
 
 #define dprintf(fmt, args...) //printf(fmt, ##args)