[Libevent-users] Patch for trunk to build on mingw,
plus a couple of questions.
Nick Mathewson
nickm at freehaven.net
Tue Nov 21 08:19:03 EST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20061121/0126382b/attachment.bin
More information about the Libevent-users
mailing list