diff options
author | joerg <joerg@pkgsrc.org> | 2015-12-13 21:56:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-12-13 21:56:27 +0000 |
commit | 0b11bea98646c3e366fb882ef83139cd4a23c327 (patch) | |
tree | 2ab09f597db7cb27d30fc20828b389f605c4dc8a /pkgtools | |
parent | e6e498394b352128e28a29f31f18637b7ea60145 (diff) | |
download | pkgsrc-0b11bea98646c3e366fb882ef83139cd4a23c327.tar.gz |
Always redefine TAILQ_FOREACH_REVERSE. Mac OS X Tiger has a version with
the third and fourth argument swapped.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/queue.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat/queue.h b/pkgtools/libnbcompat/files/nbcompat/queue.h index fdc4f7a1316..9ed316bf7dd 100644 --- a/pkgtools/libnbcompat/files/nbcompat/queue.h +++ b/pkgtools/libnbcompat/files/nbcompat/queue.h @@ -1,4 +1,4 @@ -/* $NetBSD: queue.h,v 1.8 2009/03/02 13:54:56 joerg Exp $ */ +/* $NetBSD: queue.h,v 1.9 2015/12/13 21:56:27 joerg Exp $ */ /* * Copyright (c) 1991, 1993 @@ -306,12 +306,11 @@ struct { \ (var) = (next)) #endif -#ifndef TAILQ_FOREACH_REVERSE +#undef TAILQ_FOREACH_REVERSE #define TAILQ_FOREACH_REVERSE(var, head, headname, field) \ for ((var) = (*(((struct headname *)((head)->tqh_last))->tqh_last)); \ (var); \ (var) = (*(((struct headname *)((var)->field.tqe_prev))->tqh_last))) -#endif #ifndef TAILQ_EMPTY #define TAILQ_EMPTY(head) ((head)->tqh_first == NULL) |