Whamcloud - gitweb
LU-6245 libcfs: use libcfs_private.h only for kernel space
[fs/lustre-release.git] / lustre / tests / it_test.c
index 7a56b4d..0a4f099 100644 (file)
@@ -33,6 +33,7 @@
  *
  * Author: jay <jxiong@clusterfs.com>
  */
+#include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
 #include <limits.h>
 
 #include <linux/types.h>
 
+/*
+ * it_test.c is built against one of the lustre kernel
+ * files (interval_tree.c). This pulls in kernel specific
+ * definitions which are not of interest for user land.
+ */
 #define EXPORT_SYMBOL(s)
+#define LASSERT assert
 
 #include <../ldlm/interval_tree.c>