[Libevent-users] [PATCH] TAILQ_ENTRY missing in evhttp.h on linux

Christopher Layne clayne at anodized.com
Sat Nov 3 20:18:51 EDT 2007


On Sat, Nov 03, 2007 at 04:56:07PM -0700, Niels Provos wrote:
> Try
> 
> #include <sys/queue.h>
> 
> before including evhttp.h
> 
> Niels.

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.

-cl


More information about the Libevent-users mailing list