diff --git a/buffer.c b/buffer.c index 80cb54ad..8e88fdf5 100644 --- a/buffer.c +++ b/buffer.c @@ -95,6 +95,7 @@ #include "evthread-internal.h" #include "evbuffer-internal.h" #include "bufferevent-internal.h" +#include "event-internal.h" /* some systems do not have MAP_FAILED */ #ifndef MAP_FAILED diff --git a/event-internal.h b/event-internal.h index 03eb2a87..92941b71 100644 --- a/event-internal.h +++ b/event-internal.h @@ -368,6 +368,10 @@ struct event_config { }; /* Internal use only: Functions that might be missing from */ +#ifndef LIST_END +#define LIST_END(head) NULL +#endif + #ifndef TAILQ_FIRST #define TAILQ_FIRST(head) ((head)->tqh_first) #endif