From 40930d7d0a613aaf6fa124a5963afcae0c30ce7a Mon Sep 17 00:00:00 2001
From: Roy Marples <roy@marples.name>
Date: Sun, 16 Mar 2008 17:27:13 +0000
Subject: Use correct TAILQ_CONCAT macro when not defined.

---
 src/includes/rc-misc.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/includes')

diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h
index 0b33c997..9a706175 100644
--- a/src/includes/rc-misc.h
+++ b/src/includes/rc-misc.h
@@ -111,9 +111,10 @@
 #endif
 
 #ifndef TAILQ_CONCAT
-#define TAILQ_CONCAT(head1, head2) do {                                 \
-	if (!TAILQ_EMPTY((head2))) {                                    \
+#define TAILQ_CONCAT(head1, head2, field) do {                          \
+	if (!TAILQ_EMPTY(head2)) {                                      \
 		*(head1)->tqh_last = (head2)->tqh_first;                \
+		(head2)->tqh_first->field.tqe_prev = (head1)->tqh_last; \
 		(head1)->tqh_last = (head2)->tqh_last;                  \
 		TAILQ_INIT((head2));                                    \
 	}                                                               \
-- 
cgit v1.2.3