[Libevent-users] gcc complains about TAILQ_ENTRY
Ralph Moritz
ralmoritz at gmail.com
Fri Aug 17 03:51:09 EDT 2007
Hi,
when I try to compile libevent, gcc exits with an error. Sorry I don't
remember the exact error message, but it occurs in evhttp:109, which
is:
TAILQ_ENTRY(evhttp_request) next;
I have to replace this with:
struct {
struct evhttp_request *tqe_next; /* next element */
struct evhttp_request **tqe_prev; /* address of previous next element */
} next;
to get it to compile. It's odd because that's what the macro should
expand to anyway. I'm using gcc 4.1 on Linux.
--
Ralph Moritz
Ph: +27 84 626 9070
GPG Public Key: http://ralphm.info/public.gpg
More information about the Libevent-users
mailing list