libxtrans compilation broken on GNU/Linux

Alan Coopersmith alan.coopersmith at sun.com
Mon Sep 10 14:39:49 PDT 2007


Dodji Seketeli wrote:
> In the mean times, before you send the patch, I did a quick one on my
> side, using the macro Alan was refering to. I could not  post it to the
> list earlier because I am at XDS and we are experiencing some network
> issues right there.

> +#ifdef BSD44SOCKETS
>      strlcpy(addr->sa_data, port, portlen);
> +#else
> +    strncpy(addr->sa_data, port, portlen);
> +#endif


I wouldn't use BSD44SOCKETS for strlcpy, but just a normal
AC_CHECK_FUNCS(strlcpy), since I know at least Solaris has
strlcpy/strlcat but not BSD44SOCKETS.

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering




More information about the xorg mailing list