Nmap Development mailing list archives

Re: dnet\os.h - new libdnet version


From: David Fifield <david () bamsoftware com>
Date: Fri, 29 Aug 2008 14:29:21 -0600

On Fri, Aug 15, 2008 at 02:04:18PM +0200, Gisle Vanem wrote:
This file defines 'ssize_t' twice for non-gcc systems. And since MingW/gcc
already has 'ssize_t' in <sys/types.h>, lets just delete one of them:

--- SVN-Latest\libdnet-stripped\include\dnet\os.h  Sat Jul 26 15:28:07 2008
+++ libdnet-stripped\include\dnet\os.h       Sat Jul 26 16:11:51 2008
@@ -22,9 +22,6 @@
  typedef u_char       uint8_t;
  typedef u_short      uint16_t;
  typedef u_int                uint32_t;
-# ifndef __CYGWIN__
-  typedef unsigned int         ssize_t;
-# endif
#if !defined(__GNUC__)
typedef unsigned int                ssize_t;
#define snprintf _snprintf
@@ -58,7 +55,6 @@
# define DNET_BYTESEX          DNET_BIG_ENDIAN
#endif
#endif

I copied include/dnet/os.h from the newest upstream libdnet, which
deletes the other ssize_t. Please let me know if that works for you.

To all: Did you know libdnet has a new home? It used to be at
http://libdnet.sourceforget.net/; now it's at
http://code.google.com/p/libdnet/. There was a release of version 1.12
in January 2008. Nmap's libdnet-stripped is based on 1.10. There is a
Subversion checkout available too:
svn checkout http://libdnet.googlecode.com/svn/trunk/ libdnet

David Fifield

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


Current thread: