pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files/nbcompat Add some forgotten...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50f5adf2acee
branches:  trunk
changeset: 549618:50f5adf2acee
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Nov 06 00:25:42 2008 +0000

description:
Add some forgotten ifndefs to fix issues on DragonFly.

diffstat:

 pkgtools/libnbcompat/files/nbcompat/queue.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 91077a7354cc -r 50f5adf2acee pkgtools/libnbcompat/files/nbcompat/queue.h
--- a/pkgtools/libnbcompat/files/nbcompat/queue.h       Thu Nov 06 00:00:30 2008 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat/queue.h       Thu Nov 06 00:25:42 2008 +0000
@@ -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 @@
 #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.



Home | Main Index | Thread Index | Old Index