summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-03-02 13:54:55 +0000
committerjoerg <joerg@pkgsrc.org>2009-03-02 13:54:55 +0000
commit89f19b4095d3db219454b3bcf2051cc3e4398625 (patch)
tree7648f73065d92ea95d6c9fed0d70cb8cb999ba8a
parentcda43a4714d36b07bc732e196e0a3ef26b3f1565 (diff)
downloadpkgsrc-89f19b4095d3db219454b3bcf2051cc3e4398625.tar.gz
libnbcompat-20090302:
Add TAILQ_LAST.
-rw-r--r--pkgtools/libnbcompat/Makefile4
-rw-r--r--pkgtools/libnbcompat/files/nbcompat/queue.h7
2 files changed, 8 insertions, 3 deletions
diff --git a/pkgtools/libnbcompat/Makefile b/pkgtools/libnbcompat/Makefile
index 37cf49c908c..bff3eda6c22 100644
--- a/pkgtools/libnbcompat/Makefile
+++ b/pkgtools/libnbcompat/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.68 2009/02/26 16:14:18 joerg Exp $
+# $NetBSD: Makefile,v 1.69 2009/03/02 13:54:55 joerg Exp $
#
# NOTE: If you update this package, it is *mandatory* that you update
# pkgsrc/pkgtools/libnbcompat/files/README to reflect the actual
# list of tested and supported platforms.
#
-DISTNAME= libnbcompat-20090226
+DISTNAME= libnbcompat-20090302
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/libnbcompat/files/nbcompat/queue.h b/pkgtools/libnbcompat/files/nbcompat/queue.h
index 9042d2cb801..fdc4f7a1316 100644
--- a/pkgtools/libnbcompat/files/nbcompat/queue.h
+++ b/pkgtools/libnbcompat/files/nbcompat/queue.h
@@ -1,4 +1,4 @@
-/* $NetBSD: queue.h,v 1.7 2009/02/26 16:14:18 joerg Exp $ */
+/* $NetBSD: queue.h,v 1.8 2009/03/02 13:54:56 joerg Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -323,6 +323,11 @@ struct { \
#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
#endif
+#ifndef TAILQ_LAST
+#define TAILQ_LAST(head, headname) \
+ (*(((struct headname *)((head)->tqh_last))->tqh_last))
+#endif
+
#ifndef CIRCLEQ_HEAD
#define CIRCLEQ_HEAD(name, type) \
struct name { \