mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-17 16:29:28 -04:00
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
This commit is contained in:
parent
dc2317f921
commit
d7d91461c8
@ -34,4 +34,4 @@ Changes in current version:
|
|||||||
o associate an event base with an rpc pool
|
o associate an event base with an rpc pool
|
||||||
o added two additional libraries: libevent_core and libevent_extra in addition to the regular libevent. libevent_core contains only the event core whereas libevent_extra contains dns, http and rpc support
|
o added two additional libraries: libevent_core and libevent_extra in addition to the regular libevent. libevent_core contains only the event core whereas libevent_extra contains dns, http and rpc support
|
||||||
o Begin using libtool's library versioning support correctly. If we don't mess up, this will more or less guarantee binaries linked against old versions of libevent continue working when we make changes to libevent that do not break backward compatibility.
|
o Begin using libtool's library versioning support correctly. If we don't mess up, this will more or less guarantee binaries linked against old versions of libevent continue working when we make changes to libevent that do not break backward compatibility.
|
||||||
|
o Fix evhttp.h compilation when TAILQ_ENTRY is not defined.
|
||||||
|
7
evhttp.h
7
evhttp.h
@ -166,7 +166,14 @@ enum evhttp_request_kind { EVHTTP_REQUEST, EVHTTP_RESPONSE };
|
|||||||
* reasonable accessors.
|
* reasonable accessors.
|
||||||
*/
|
*/
|
||||||
struct evhttp_request {
|
struct evhttp_request {
|
||||||
|
#if defined(TAILQ_ENTRY)
|
||||||
TAILQ_ENTRY(evhttp_request) next;
|
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 */
|
/* the connection object that this request belongs to */
|
||||||
struct evhttp_connection *evcon;
|
struct evhttp_connection *evcon;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user