Nmap Development mailing list archives

Re: [Patch] dnet_winconfig.h


From: David Fifield <david () bamsoftware com>
Date: Mon, 29 Nov 2010 12:28:11 -0800

On Thu, Nov 25, 2010 at 09:29:53PM +0100, Gisle Vanem wrote:
Windows doesn't have <sys/socket.h>. So why is 'HAVE_SYS_SOCKET_H'
defined in libdnet-stripped\include\dnet_winconfig.h? AFAICS, this patch
is needed:

--- libdnet-stripped\include\dnet_winconfig.h   Wed Dec 24 13:30:29 2008
+++ libdnet-stripped\include\dnet_winconfig.h        Sat Nov 20 20:03:19 2010
@@ -195,7 +195,7 @@
/* #undef HAVE_SYS_NDD_VAR_H */

/* Define if you have the <sys/socket.h> header file. */
-#define HAVE_SYS_SOCKET_H 1
+/* #define HAVE_SYS_SOCKET_H 1 */

/* Define if you have the <sys/sockio.h> header file. */
/* #undef HAVE_SYS_SOCKIO_H */

Thanks, I changed the definition.

How come this is possible on Win32 now?

It doesn't matter because HAVE_SYS_SOCKET_H is never actually used
anywhere.

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


Current thread: