[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using strlcpy/strlcat in non-OpenBSD applications.



[accidently cc'ed to Todd]

"Todd C. Miller" wrote:
> Since other OSes have picked up strlc{py,at} I think a better approach
> is to use something like autoconf that can problem whether or not
> the OS has the functions.  Maybe something like:
> 
> AC_CHECK_FUNC(strlcpy, AC_DEFINE(HAVE_STRLCPY), LIBOBJS="$LIBOBJS strlcpy.o")
> AC_CHECK_FUNC(strlcat, AC_DEFINE(HAVE_STRLCAT), LIBOBJS="$LIBOBJS strlcat.o")
> 
> in configure.in.  Then you just have strlcpy.c and strlcat.c in the
> distribution for those OSes without it.  

Okay, thanks.

Would the author of the MM library have
to change his license to BSD then?




Visit your host, monkey.org