blob: 287df2fe89b11e0b17a75ad744c94418f937e46d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ag,v 1.1 2000/11/08 15:53:49 tron Exp $
--- libhack/alias_db.c.orig Mon Oct 30 18:24:12 2000
+++ libhack/alias_db.c Wed Nov 8 16:48:59 2000
@@ -141,6 +141,13 @@
#include "alias_local.h"
+#ifndef LIST_FOREACH
+#define LIST_FOREACH(var, head, field) \
+ for ((var) = ((head)->lh_first); \
+ (var); \
+ (var) = ((var)->field.le_next))
+
+#endif
/*
Constants (note: constants are also defined
|