Module Name: src Committed By: christos Date: Sat Jul 20 10:31:19 UTC 2013
Modified Files: src/tools/compat: compat_defs.h Log Message: revert socklen_t to int (from dh) To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/tools/compat/compat_defs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tools/compat/compat_defs.h diff -u src/tools/compat/compat_defs.h:1.89 src/tools/compat/compat_defs.h:1.90 --- src/tools/compat/compat_defs.h:1.89 Fri Jul 19 08:00:30 2013 +++ src/tools/compat/compat_defs.h Sat Jul 20 06:31:19 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: compat_defs.h,v 1.89 2013/07/19 12:00:30 christos Exp $ */ +/* $NetBSD: compat_defs.h,v 1.90 2013/07/20 10:31:19 christos Exp $ */ #ifndef __NETBSD_COMPAT_DEFS_H__ #define __NETBSD_COMPAT_DEFS_H__ @@ -168,7 +168,12 @@ typedef unsigned int id_t; #endif #if !HAVE_SOCKLEN_T -typedef unsigned int socklen_t; +/* + * This is defined as int for compatibility with legacy systems (and not + * unsigned int), since universally it was int in most systems that did not + * define it. + */ +typedef int socklen_t; #endif #if !HAVE_U_LONG