diff options
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat.h | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/pkgtools/libnbcompat/Makefile b/pkgtools/libnbcompat/Makefile index 916bc16a838..bac98a549fc 100644 --- a/pkgtools/libnbcompat/Makefile +++ b/pkgtools/libnbcompat/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.1.1.1 2003/03/31 05:02:17 grant Exp $ +# $NetBSD: Makefile,v 1.2 2003/04/03 12:48:45 grant Exp $ # -DISTNAME= libnbcompat-20030331 +DISTNAME= libnbcompat-20030403 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h index dae010c2295..b88f91fafaa 100644 --- a/pkgtools/libnbcompat/files/nbcompat.h +++ b/pkgtools/libnbcompat/files/nbcompat.h @@ -94,9 +94,17 @@ struct { \ #define LIST_INIT(head) do { \ (head)->lh_first = NULL; \ } while (/*CONSTCOND*/0) +#endif +#if ! LIST_EMPTY #define LIST_EMPTY(head) ((head)->lh_first == NULL) +#endif + +#if ! LIST_FIRST #define LIST_FIRST(head) ((head)->lh_first) +#endif + +#if ! LIST_NEXT #define LIST_NEXT(elm, field) ((elm)->field.le_next) #endif |