summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorgrant <grant>2003-04-03 12:48:45 +0000
committergrant <grant>2003-04-03 12:48:45 +0000
commitd9ce78002e97344deba42e7973891c1172f4dbce (patch)
treea87ef4e809a3a5339272b054c60a2e18fa342867 /pkgtools
parentf2a0aabf9f8b0ddb16826a098accd92e03e94289 (diff)
downloadpkgsrc-d9ce78002e97344deba42e7973891c1172f4dbce.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