#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.
/* @} */
-#endif /* __linux__ && __KERNEL__ */
+#endif /* __KERNEL__ */
#ifndef list_for_each_prev
/**