Nmap Development mailing list archives

Re: [NSE patch] patch for pack/unpack to use platform independant types


From: David Fifield <david () bamsoftware com>
Date: Wed, 3 Sep 2008 17:12:41 -0600

On Wed, Sep 03, 2008 at 11:37:45AM +0100, jah wrote:
On 26/08/2008 20:11, David Fifield wrote:
I've tested this on GNU/Linux and Solaris, but not on Windows.
Hello,

I'm getting the following whilst trying to build r9908 on win32:
Compiling...
utils.cc
traceroute.cc
..\libdnet-stripped\include\dnet/os.h(26) : error C2371: 'ssize_t' :
redefinition; different basic types
        u:\dev\nmap\proj\r9908\nbase\nbase_winunix.h(140) : see
declaration of 'ssize_t'
timing.cc
tcpip.cc
..\libdnet-stripped\include\dnet/os.h(26) : error C2371: 'ssize_t' :
redefinition; different basic types
        u:\dev\nmap\proj\r9908\nbase\nbase_winunix.h(140) : see
declaration of 'ssize_t'
<snip: more of the same>
nmap - 18 error(s), 0 warning(s)

Seems to be related to the change of type for ssize_t in
\libdnet-stripped\include\dnet\os.h at r9837.  I get no errors when
changing ssize_t to the same type (long) in nbase\nbase_winunix.h.

I think you're right. However libdnet appears to be the only part of the
course tree that uses ssize_t, and it typedefs its own. Does it work to
just delete the typedef of ssize_t from nbase_winunix.h?

David Fifield

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


Current thread: