patch-2.4.11-dontuse linux/drivers/ieee1394/ieee1394_types.h
Next file: linux/drivers/ieee1394/nodemgr.c
Previous file: linux/drivers/ieee1394/ieee1394_transactions.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Mon Oct 1 21:24:24 2001
- Orig file:
v2.4.10/linux/drivers/ieee1394/ieee1394_types.h
- Orig date:
Mon Aug 27 12:41:41 2001
diff -u --recursive --new-file v2.4.10/linux/drivers/ieee1394/ieee1394_types.h linux/drivers/ieee1394/ieee1394_types.h
@@ -26,6 +26,13 @@
#include <linux/spinlock.h>
#endif
+#ifndef list_for_each_safe
+#define list_for_each_safe(pos, n, head) \
+ for (pos = (head)->next, n = pos->next; pos != (head); \
+ pos = n, n = pos->next)
+
+#endif
+
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)