libxtrans compilation broken on GNU/Linux

Joerg Sonnenberger joerg at britannica.bec.de
Mon Sep 10 14:40:51 PDT 2007


On Mon, Sep 10, 2007 at 02:39:49PM -0700, Alan Coopersmith wrote:
> 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.

...and FreeBSD 3 will have BSD sockets, but no strlcpy.

Joerg



More information about the xorg mailing list