[Libevent-users] [PATCH] TAILQ_ENTRY missing in evhttp.h on linux
Niels Provos
provos at citi.umich.edu
Sat Nov 3 20:53:42 EDT 2007
On 11/3/07, Christopher Layne <clayne at anodized.com> wrote:
> Why is this a usercode issue? Shouldn't evhttp.h be more interested in
> handling it's dependencies than non-event parent code? It's similar to the
> <sys/time.h> being a usercode, but event.h dependency as well. I mean why
> not make the parent code just handle all includes for event.h and evhttp.h
> - down to stdint.h while we're at it? Because that would be ridiculous -
> and the child header should handle it's own dependencies. I know Rob Pike
> may have thought at one time one shouldn't include other include files -
> but that was also 1989.
Well, Rob Pike has many great insights. He also does not like
conditional compilation. However, you are right, evhttp.h could
resolve the dependency on queue.h internally. I will look into it.
Niels.
More information about the Libevent-users
mailing list