Mark Wielaard wrote:
Hi Dalibor,
On Mon, 2007-06-25 at 02:07 +0200, Dalibor Topic wrote:
the attached patch largely fixes the build on cygwin, and lets IPv6
dependant code only be built if we find IPv6 facilities.
[...]
* native/jni/native-lib/cpnet.c
(cpnet_getHostByName, cpnet_getHostByAddr) Build IPv6 dependant
code conditionally on IPv6 facilities being available.
(cpnet_aton) Moved variable declaration of inet6_addr to the scope
of its use. Build IPv6 dependant code conditionally
on IPv6 facilities being available.
This broke the build (bad Dalibor!), because the variable declaration
was moved just after the first usage. Moved it back (and guarded it with
the new HAVE_INET6 define.
Thanks for the catch!
cheers,
dalibor topic