[Libevent-users] Patch for trunk to build on mingw,
plus a couple of questions.
freeman
alexguo at gmail.com
Tue Nov 21 11:13:43 EST 2006
Many thanks for your better job.
On 11/21/06, Nick Mathewson <nickm at freehaven.net> wrote:
>
> Hi, all.
>
> So, neither trunk nor 1.2 builds on mingw. This is pretty bad, since
> mingw is now the Tor project's official compiler.
>
> I've got a patch that fixes all of the build errors in the main source
> files here:
> http://freehaven.net/~nickm/mingw-libevent-3.diff
>
> This patch shouldn't break anything that worked before, so applying it
> would probably be a good idea.
>
> There are still a few problems, though:
>
> 1) Windows has no getaddrinfo or getnameinfo. This keeps http.c from
> building. I've faked getaddrinfo somewhat, but there still needs to
> be an implementation of name_from_addr. Probably, it would make
> sense to have http.c use evdns.c rather than calling the platform
> resolver and blocking.
>
> 2) The types u_int8_t, u_int16_t, and so on are defined in config.h
> when they aren't present on the platform. This would be fine,
> except for the fact that they're used in event.h, and config.h
> isn't installed. As a user of libevent, I need to detect these
> types myself and typedef them when they don't exist.
>
> 3) http.c uses strlcpy, so libevent adds a strlcpy implementation when
> the platform doesn't have one. This is fine, except for the fact
> that the strlcpy implementation is actually exported by libevent:
> later, when I use autoconf to detect whether strlcpy is available,
> I need to make sure to do so before I search for libevent, so that
> I don't erroneously pick up libevent's strlcpy implementation.
>
> --
> Nick Mathewson
>
>
> _______________________________________________
> Libevent-users mailing list
> Libevent-users at monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
>
>
--
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://monkeymail.org/archives/libevent-users/attachments/20061122/e49a8a8a/attachment-0001.htm
More information about the Libevent-users
mailing list