diff options
author | joerg <joerg@pkgsrc.org> | 2008-11-06 00:25:42 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-11-06 00:25:42 +0000 |
commit | 6d6f20fbaf6b0d02cd9a96aa95fd95d21b1b92ab (patch) | |
tree | fb2e1af5a782fe9247abd18709181fa7783b8d99 /pkgtools | |
parent | 18c38875703c234fe2c11aa0e55b662fd673e48a (diff) | |
download | pkgsrc-6d6f20fbaf6b0d02cd9a96aa95fd95d21b1b92ab.tar.gz |
Add some forgotten ifndefs to fix issues on DragonFly.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/queue.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat/queue.h b/pkgtools/libnbcompat/files/nbcompat/queue.h index a8f6762572f..ed400d81a95 100644 --- a/pkgtools/libnbcompat/files/nbcompat/queue.h +++ b/pkgtools/libnbcompat/files/nbcompat/queue.h @@ -1,4 +1,4 @@ -/* $NetBSD: queue.h,v 1.5 2008/10/28 15:15:18 joerg Exp $ */ +/* $NetBSD: queue.h,v 1.6 2008/11/06 00:25:42 joerg Exp $ */ /* * Copyright (c) 1991, 1993 @@ -316,20 +316,26 @@ struct { \ #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) #endif +#ifndef CIRCLEQ_HEAD #define CIRCLEQ_HEAD(name, type) \ struct name { \ struct type *cqh_first; /* first element */ \ struct type *cqh_last; /* last element */ \ } +#endif +#ifndef CIRCLEQ_HEAD_INITIALIZER #define CIRCLEQ_HEAD_INITIALIZER(head) \ { (void *)&head, (void *)&head } +#endif +#ifndef CIRCLEQ_ENTRY #define CIRCLEQ_ENTRY(type) \ struct { \ struct type *cqe_next; /* next element */ \ struct type *cqe_prev; /* previous element */ \ } +#endif /* * Circular queue functions. |