NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install/48063: incorrect definition of socklen_t

>Number:         48063
>Category:       install
>Synopsis:       incorrect definition of socklen_t
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 18 23:15:00 +0000 2013
>Originator:     Justin Cormack
>Release:        head
the fallback socklen_t definition in tools/compat/compat_defs.h is incorrect, 
should be unsigned not int (as required by POSIX).

build in an environment where socklen_t not defined (!)
This patch fixes it
--- tools/compat/compat_defs.h-orig     2013-07-18 23:58:17.557596850 +0100
+++ tools/compat/compat_defs.h  2013-07-18 23:58:47.881595465 +0100
@@ -168,7 +168,7 @@
-typedef int socklen_t;
+typedef unsigned int socklen_t;

Home | Main Index | Thread Index | Old Index