diff options
author | joerg <joerg> | 2009-03-02 13:54:55 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-03-02 13:54:55 +0000 |
commit | d11c5cd3f1f3c7583dc6517c813617d39ad1d79b (patch) | |
tree | 7648f73065d92ea95d6c9fed0d70cb8cb999ba8a /pkgtools | |
parent | 80c304f4e26d819adf20b0207f0d3a88ffe53534 (diff) | |
download | pkgsrc-d11c5cd3f1f3c7583dc6517c813617d39ad1d79b.tar.gz |
libnbcompat-20090302:
Add TAILQ_LAST.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/queue.h | 7 |
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 { \ |