Nmap Development mailing list archives

Re: <netdb.h> in nsock/src/


From: Henri Doreau <henri.doreau () gmail com>
Date: Tue, 30 Apr 2013 19:08:15 +0200

2013/4/30 Gisle Vanem <gvanem () broadpark no>:
Some nsock files now includes <netdb.h>.
These should have a guard; "#if HAVE_NETDB_H".
We Windows (MSVC) users doesn't have this header.

So AFAICS these files should be fixed:
nsock\src\nsock_proxy.c
nsock\src\proxy_http.c
nsock\src\proxy_socks4.c

BTW. what about the use of strtok_r()? Missing on MSVC/MingW.

--gv
Hi,

thanks for the report. Could you give a try at the patch attached?
Concerning strtok_r, would it be ok to simply #define strtok_r
strtok_s?

Regards

--
Henri

Attachment: fix_netdb_win.patch
Description:

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: