aboutsummaryrefslogtreecommitdiff
path: root/src/includes/rc-misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/includes/rc-misc.h')
-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)); \
} \