summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat/files/nbcompat.h
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/libnbcompat/files/nbcompat.h
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/libnbcompat/files/nbcompat.h')
-rw-r--r--pkgtools/libnbcompat/files/nbcompat.h8
1 files changed, 8 insertions, 0 deletions
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