libxtrans compilation broken on GNU/Linux
alan.coopersmith at sun.com
Sat Sep 8 09:48:29 PDT 2007
Dodji Seketeli wrote:
> In file Xtranssock.c, function SocketReopen(),
> some new socket manipulation code has been added, and the socket
> interface used is the BSD one. For instance, accessing
> sockaddr::sa_len, or using the SOCK_MAXADDRLEN macro.
> Well, there is also the use of strlcpy() that causes problem, and I am
> not sure how to properly handle that either.
> Are there some macros in the server to detect the style of the sockets
> (BSD or not, for instance) so that I can just #ifdef the code
> properly ?
#ifdef BSD44SOCKETS is already sprinkled through xtrans for handling
the sa_len presence check.
The XTRANS_TCP_FLAGS autoconf macro in xtrans.m4 sets it in the packages
that use xtrans.
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the xorg