Use correct TAILQ_CONCAT macro when not defined.

This commit is contained in:
Roy Marples
2008-03-16 17:27:13 +00:00
parent 1fd1472dde
commit 40930d7d0a
6 changed files with 15 additions and 14 deletions

View File

@@ -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)); \
} \