From ac13a1a34b61247a21da130f0ba9922f35d3dc3b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 15 Apr 2008 12:32:35 -0700 Subject: Sun bug #6688467: _X11TransConvertAddress: Unknown family type on 64-bit SPARC Check for socklen_t definition and if found use it instead of size_t or int for the length argument to getpeername/getsockname/etc. --- xtrans.m4 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xtrans.m4') diff --git a/xtrans.m4 b/xtrans.m4 index 1d80595..dfc5dd3 100644 --- a/xtrans.m4 +++ b/xtrans.m4 @@ -52,6 +52,12 @@ AC_DEFUN([XTRANS_TCP_FLAGS],[ #include #include ]) + + # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. + AC_CHECK_TYPES([socklen_t], [], [], [ +AC_INCLUDES_DEFAULT +#include ]) + ]) # XTRANS_TCP_FLAGS # XTRANS_CONNECTION_FLAGS() -- cgit v1.2.3