Eric Blake wrote:
Currently, cygwin does not provide getaddrinfo, even though
SUSv3 specifies it in <sys/socket.h>/<netdb.h>. CVS Coreutils
has been using gnulib to provide a replacement definition,
but recently gnulib was updated to work on mingw, reusing
the winsock headers/libraries to provide getaddrinfo. As a
result, coreutils is now trying to link in -lws2_32 to get
the winsock version of getaddrinfo (and I suspect that will
not work properly).
I have used the following as a workaround in several packages:
http://www.sra.co.jp/people/m-kasahr/getaddrinfo/
You need only the getaddrinfo.{c,h} from the tarball (and the README for
license?) and include it in your sources; exactly how depends on the
package.
Yaakov
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/