cvs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-dev] Trunk build fails on Cygwin


From: Jim Hyslop
Subject: [Cvs-dev] Trunk build fails on Cygwin
Date: Fri, 30 Jun 2006 19:27:56 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, all

The current trunk fails to build under Cygwin. lib/getaddrinfo.c
references the macros NI_NUMERICHOST and NI_NUMERICSERV. On my Debian
system, I found these defined in /usr/include/netdb.h, but the Cygwin
version of netdb.h doesn't have them. Instead, Cygwin defines the macros
in /usr/include/w32api/ws2tcpip.h (with different values).

So, what's the best way around this? Should I add something like this to
getaddrinfo.c:

#if !defined ( NI_NUMERICSERV ) && defined (HAVE_WS2TCPIP_H)
#include <ws2tcpip.h>
#endif

(config.h currently contains the macro HAVE_WS2TCPIP_H, so there
wouldn't be any other changes necessary).

Does anyone have a better solution, or should we run this past the
GNULIB folks to see what they think?

- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEpbN8LdDyDwyJw+MRAnNeAKDO3K+4PFeAACEoIDdJrhciqtqwdgCfbNQ2
xU7R/ZN54CRn/5NHQmY5SCs=
=VfCP
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]