summaryrefslogtreecommitdiff
path: root/evhttp.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-06 03:04:49 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-06 03:04:49 +0000
commitd7d91461c853d87fa78b467d6c5fdf386d9c10e1 (patch)
tree95bde86585dface9690753601b8a6a50001997b0 /evhttp.h
parentdc2317f921f6d0041ae387cccdf7e0368f4920b0 (diff)
downloadlibevent-d7d91461c853d87fa78b467d6c5fdf386d9c10e1.tar.gz
r14732@tombo: nickm | 2007-11-05 22:03:28 -0500
Quick hack to make evhttp.h build when there is no TAILQ to be found. Based on patch from Paul Fisher. We could perhaps do this more elegantly, but it _does_ need to be done. svn:r475
Diffstat (limited to 'evhttp.h')
-rw-r--r--evhttp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/evhttp.h b/evhttp.h
index fe16c6f5..106ac231 100644
--- a/evhttp.h
+++ b/evhttp.h
@@ -166,7 +166,14 @@ enum evhttp_request_kind { EVHTTP_REQUEST, EVHTTP_RESPONSE };
* reasonable accessors.
*/
struct evhttp_request {
+#if defined(TAILQ_ENTRY)
TAILQ_ENTRY(evhttp_request) next;
+#else
+struct {
+ struct evhttp_request *tqe_next;
+ struct evhttp_request **tqe_prev;
+} next;
+#endif
/* the connection object that this request belongs to */
struct evhttp_connection *evcon;