diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-04-15 12:32:35 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-04-15 12:32:35 -0700 |
commit | ac13a1a34b61247a21da130f0ba9922f35d3dc3b (patch) | |
tree | d16c586b7ea0f46f7acaf4360b353d26c0b09f17 /xtrans.m4 | |
parent | 556a351de83fc6f401b02213dae95731553c216d (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.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() |