[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using strlcpy/strlcat in non-OpenBSD applications.
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Using strlcpy/strlcat in non-OpenBSD applications.
- From: "Alexander Farber (EED)" <eedalf_(_at_)_eed_(_dot_)_ericsson_(_dot_)_se>
- Date: Mon, 04 Dec 2000 20:21:40 +0100
[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