pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat libnbcompat-20090302:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/798d7bed2320
branches:  trunk
changeset: 555441:798d7bed2320
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Mar 02 13:54:55 2009 +0000

description:
libnbcompat-20090302:
Add TAILQ_LAST.

diffstat:

 pkgtools/libnbcompat/Makefile               |  4 ++--
 pkgtools/libnbcompat/files/nbcompat/queue.h |  7 ++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r bbb8862e2705 -r 798d7bed2320 pkgtools/libnbcompat/Makefile
--- a/pkgtools/libnbcompat/Makefile     Mon Mar 02 11:37:34 2009 +0000
+++ b/pkgtools/libnbcompat/Makefile     Mon Mar 02 13:54:55 2009 +0000
@@ -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 -r bbb8862e2705 -r 798d7bed2320 pkgtools/libnbcompat/files/nbcompat/queue.h
--- a/pkgtools/libnbcompat/files/nbcompat/queue.h       Mon Mar 02 11:37:34 2009 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat/queue.h       Mon Mar 02 13:54:55 2009 +0000
@@ -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 @@
 #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 {                                                          \



Home | Main Index | Thread Index | Old Index