aboutsummaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-16 17:27:13 +0000
committerRoy Marples <roy@marples.name>2008-03-16 17:27:13 +0000
commit40930d7d0a613aaf6fa124a5963afcae0c30ce7a (patch)
tree89b379b4fe5a20a061c05881b75ad93276d80d08 /src/includes
parent1fd1472ddeb4a9e248bd20a378091ffe6f1132b6 (diff)
Use correct TAILQ_CONCAT macro when not defined.
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/rc-misc.h5
1 files changed, 3 insertions, 2 deletions
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)); \
} \