Skip to content

Commit 5a9419b

Browse files
committed
shims: correct TAILQ_CONCAT
This fixes libdispatch on Windows where we use the shims rather than a system provided `sys/queue.h` as that is a BSD extension.
1 parent a3bff44 commit 5a9419b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/generic_sys_queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
#define TAILQ_CONCAT(head1, head2, field) do { \
9696
if (!TAILQ_EMPTY(head2)) { \
9797
(head1)->tq_last = (head2)->tq_first; \
98-
(head1)->tq_first->field.te_prev = (head1)->tq_last; \
98+
(head2)->tq_first->field.te_prev = (head1)->tq_last; \
9999
(head1)->tq_last = (head2)->tq_last; \
100100
TAILQ_INIT((head2)); \
101101
} \

0 commit comments

Comments
 (0)