| OLD | NEW |
| (Empty) |
| 1 diff --git a/third_party/libevent/event-internal.h b/third_party/libevent/event-
internal.h | |
| 2 index 7485f21..93ac568 100644 | |
| 3 --- a/event-internal.h | |
| 4 +++ b/event-internal.h | |
| 5 @@ -71,7 +71,7 @@ struct event_base { | |
| 6 }; | |
| 7 | |
| 8 /* Internal use only: Functions that might be missing from <sys/queue.h> */ | |
| 9 -#ifndef HAVE_TAILQFOREACH | |
| 10 +#if !defined(HAVE_TAILQFOREACH) || defined(__QUENTIN_BUILD__) | |
| 11 #define TAILQ_FIRST(head) ((head)->tqh_first) | |
| 12 #define TAILQ_END(head) NULL | |
| 13 #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) | |
| 14 @@ -85,6 +85,9 @@ struct event_base { | |
| 15 *(listelm)->field.tqe_prev = (elm); \ | |
| 16 (listelm)->field.tqe_prev = &(elm)->field.tqe_next; \ | |
| 17 } while (0) | |
| 18 +#define TAILQ_LAST(head, headname) \ | |
| 19 + (*(((struct headname *)((head)->tqh_last))->tqh_last)) | |
| 20 +#define TAILQ_EMPTY(head) ((head)->tqh_first == NULL) | |
| 21 #endif /* TAILQ_FOREACH */ | |
| 22 | |
| 23 int _evsignal_set_handler(struct event_base *base, int evsignal, | |
| 24 diff --git a/third_party/libevent/evrpc.c b/third_party/libevent/evrpc.c | |
| 25 index 070fd9e..194cdab 100644 | |
| 26 --- a/evrpc.c | |
| 27 +++ b/evrpc.c | |
| 28 @@ -55,6 +55,7 @@ | |
| 29 | |
| 30 #include "event.h" | |
| 31 #include "evrpc.h" | |
| 32 +#include "event-internal.h" | |
| 33 #include "evrpc-internal.h" | |
| 34 #include "evhttp.h" | |
| 35 #include "evutil.h" | |
| 36 diff --git a/third_party/libevent/http.c b/third_party/libevent/http.c | |
| 37 index 38a89b6..8fce37a 100644 | |
| 38 --- a/http.c | |
| 39 +++ b/http.c | |
| 40 @@ -88,6 +88,7 @@ | |
| 41 #include "evutil.h" | |
| 42 #include "log.h" | |
| 43 #include "http-internal.h" | |
| 44 +#include "event-internal.h" | |
| 45 | |
| 46 #ifdef WIN32 | |
| 47 #define strcasecmp _stricmp | |
| OLD | NEW |