diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-11-06 03:04:49 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-11-06 03:04:49 +0000 |
commit | d7d91461c853d87fa78b467d6c5fdf386d9c10e1 (patch) | |
tree | 95bde86585dface9690753601b8a6a50001997b0 /evhttp.h | |
parent | dc2317f921f6d0041ae387cccdf7e0368f4920b0 (diff) | |
download | libevent-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |