[Top][All Lists]

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

Re: [Bug-gnulib] stpncpy and AIX

From: Jim Meyering
Subject: Re: [Bug-gnulib] stpncpy and AIX
Date: Thu, 25 Sep 2003 23:03:55 +0200

Bruno Haible <address@hidden> wrote:
> Jim Meyering wrote:
>> How does its behavior differ?
> glibc's stpncpy (to, from, n) has the return value  to + n,
> whereas in AIX the return value is                  to + max (n, 1) - 1


>> What about having an autoconf test detect it
> A possible test that invokes running a program can be made up by testing
> the return value of a sample call. But it doesn't work with crosscompiling.

There's nothing wrong with running a program, as long as there's
a viable fall-back position to take when cross-compiling.
And in this case there is: just use the replacement function.
Besides, anyone who's serious about cross-compiling will have
seeded their autoconf cache with the proper values for all
run tests.

>> and then compile the replacement function only if necessary?
> Sure, that's what we do always.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]