Whamcloud - gitweb
LU-2675 build: assume __linux__ and __KERNEL__
[fs/lustre-release.git] / libcfs / include / libcfs / list.h
index 6dca9ad..8419796 100644 (file)
 #ifndef __LIBCFS_LIST_H__
 #define __LIBCFS_LIST_H__
 
-#if defined (__linux__) && defined(__KERNEL__)
-
-#include <linux/list.h>
-
-#else /* !defined (__linux__) || !defined(__KERNEL__) */
+#ifdef __KERNEL__
+# include <linux/list.h>
+#else /* __KERNEL__ */
 
 /*
  * Simple doubly linked list implementation.
@@ -443,7 +441,7 @@ static inline void hlist_add_after(struct hlist_node *n,
 
 /* @} */
 
-#endif /* __linux__ && __KERNEL__ */
+#endif /* __KERNEL__ */
 
 #ifndef list_for_each_prev
 /**