Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/compat revert socklen_t to int (from dh)
details: https://anonhg.NetBSD.org/src/rev/23fedf9cd8a7
branches: trunk
changeset: 788799:23fedf9cd8a7
user: christos <christos%NetBSD.org@localhost>
date: Sat Jul 20 10:31:19 2013 +0000
description:
revert socklen_t to int (from dh)
diffstat:
tools/compat/compat_defs.h | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 286bbe1b5437 -r 23fedf9cd8a7 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h Sat Jul 20 05:16:08 2013 +0000
+++ b/tools/compat/compat_defs.h Sat Jul 20 10:31:19 2013 +0000
@@ -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 @@
#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
Home |
Main Index |
Thread Index |
Old Index