Nmap Development mailing list archives

[Patch] IPv6 and MingW


From: Gisle Vanem <giva () bgnett no>
Date: Tue, 24 Jan 2006 21:29:55 +0100

Building with HAVE_IPV6 on MingW causes some problems;

* gai_strerror() (actually gai_strerrorA()) is prototyped in <ws2tcpip.h>,
 but implemented nowhere. So nbase/getaddrinfo.c must include the
 code unconditionally.

* ENOSPC is in <errno.h>, but the IMHO silly hack to prevent including
 <errno.h>  (#define _ERRNO_H_ in nbase_winunix.h), fails to compile
 nbase/inet_ntop.c. #ifndef around it. Another option would be to add
 -DENOSPC=28 to the CFLAGS.

--gv

Attachment: diffs-4.txt
Description:



_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev

Current thread: