From 88bd79439d0c37468e9da9ee7354cd2405fba532 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Mon, 13 Feb 2006 04:53:58 +0000 Subject: [PATCH] make it compile on mac os x svn:r202 --- event.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/event.h b/event.h index 4a14d5de..8787cc0b 100644 --- a/event.h +++ b/event.h @@ -103,11 +103,25 @@ struct event { #define EVENT_SIGNAL(ev) (int)ev->ev_fd #define EVENT_FD(ev) (int)ev->ev_fd +/* + * Key-Value pairs. Can be used for HTTP headers but also for + * query argument parsing. + */ +struct evkeyval { + TAILQ_ENTRY(evkeyval) next; + + char *key; + char *value; +}; + #ifdef _EVENT_DEFINED_TQENTRY #undef TAILQ_ENTRY +struct event_list; +struct evkeyvalq; #undef _EVENT_DEFINED_TQENTRY #else TAILQ_HEAD (event_list, event); +TAILQ_HEAD (evkeyvalq, evkeyval); #endif /* _EVENT_DEFINED_TQENTRY */ #ifdef _EVENT_DEFINED_RBENTRY #undef RB_ENTRY @@ -365,19 +379,6 @@ void evhttp_request_free(struct evhttp_request *req); /* Interfaces for dealing with HTTP headers */ -/* - * Key-Value pairs. Can be used for HTTP headers but also for - * query argument parsing. - */ -struct evkeyval { - TAILQ_ENTRY(evkeyval) next; - - char *key; - char *value; -}; - -TAILQ_HEAD(evkeyvalq, evkeyval); - char *evhttp_find_header(struct evkeyvalq *, const char *); void evhttp_remove_header(struct evkeyvalq *, const char *); int evhttp_add_header(struct evkeyvalq *, const char *, const char *); -- 2.50.1