diff --git a/event-internal.h b/event-internal.h index 12ca8bc1..74c2a396 100644 --- a/event-internal.h +++ b/event-internal.h @@ -313,10 +313,12 @@ struct event_config { #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) #endif +#ifndef TAILQ_FOREACH #define TAILQ_FOREACH(var, head, field) \ for ((var) = TAILQ_FIRST(head); \ (var) != TAILQ_END(head); \ (var) = TAILQ_NEXT(var, field)) +#endif #ifndef TAILQ_INSERT_BEFORE #define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \