summaryrefslogtreecommitdiff
path: root/xtrans.m4
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-04-15 12:32:35 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-04-15 12:32:35 -0700
commitac13a1a34b61247a21da130f0ba9922f35d3dc3b (patch)
treed16c586b7ea0f46f7acaf4360b353d26c0b09f17 /xtrans.m4
parent556a351de83fc6f401b02213dae95731553c216d (diff)
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. <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6688467>
Diffstat (limited to 'xtrans.m4')
-rw-r--r--xtrans.m46
1 files changed, 6 insertions, 0 deletions
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 <sys/socket.h>
#include <netinet/in.h>
])
+
+ # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
+ AC_CHECK_TYPES([socklen_t], [], [], [
+AC_INCLUDES_DEFAULT
+#include <sys/socket.h>])
+
]) # XTRANS_TCP_FLAGS
# XTRANS_CONNECTION_FLAGS()