patch-2.4.2 linux/include/linux/list.h
Next file: linux/include/linux/lvm.h
Previous file: linux/include/linux/kernelcapi.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Feb 16 16:06:17 2001
- Orig file:
v2.4.1/linux/include/linux/list.h
- Orig date:
Tue Aug 8 12:18:58 2000
diff -u --recursive --new-file v2.4.1/linux/include/linux/list.h linux/include/linux/list.h
@@ -1,7 +1,7 @@
#ifndef _LINUX_LIST_H
#define _LINUX_LIST_H
-#ifdef __KERNEL__
+#if defined(__KERNEL__) || defined(_LVM_H_INCLUDE)
/*
* Simple doubly linked list implementation.
@@ -149,6 +149,6 @@
#define list_for_each(pos, head) \
for (pos = (head)->next; pos != (head); pos = pos->next)
-#endif /* __KERNEL__ */
+#endif /* __KERNEL__ || _LVM_H_INCLUDE */
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)