summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-04-03 12:48:45 +0000
committergrant <grant@pkgsrc.org>2003-04-03 12:48:45 +0000
commit8c72cb472c80aad0e06f3f525afb398fdf168075 (patch)
treea87ef4e809a3a5339272b054c60a2e18fa342867 /pkgtools
parentcef8e7000d71d13f729b8122919b4c281f846f00 (diff)
downloadpkgsrc-8c72cb472c80aad0e06f3f525afb398fdf168075.tar.gz
make sure LIST_EMPTY, LIST_FIRST and LIST_NEXT are defined (linux
doesn't have these in sys/queue.h). noted by Jeremy C. Reed on tech-pkg.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/libnbcompat/Makefile4
-rw-r--r--pkgtools/libnbcompat/files/nbcompat.h8
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