Nmap Development mailing list archives

Re: [libdnet-stripped] svn version does not compile because of config.h


From: David Fifield <david () bamsoftware com>
Date: Wed, 13 Jan 2010 20:38:48 -0700

On Wed, Jan 13, 2010 at 09:44:39PM -0500, Michael Pattrick wrote:
The correct syntax with typedef should be:
typedef int socklen_t;

not:
typedef socklen_t int

Checking the latest svn, I see that line 304 of
"libdnet-stripped/include/config.h.in" is erroneous. But this file
claims to be auto-generated and I'm not confident enough with the
automake system to know how to fix it.

You're right Michael. I committed your fix. The right place to do it is
in acconfig.h; that's included at the bottom of config.h.in by
autoheader. I introduced that typedef when I added checks for socklen_t
to avoid some compiler warnings. I guess I never exercised the
no-socklen_t case.

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: