cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl_strerror and strerror_r on glibc

From: Tor Arntsen <tor_at_spacetec.no>
Date: Thu, 25 Mar 2004 15:34:29 +0100

On Mar 25, 13:15, Daniel Stenberg wrote:
>On Thu, 25 Mar 2004, Tor Arntsen wrote:
>
>> But glibc (despite the confusing manpage on at least some Linux distros) has
>> an old, incompatible implementation that *appears* to be similar enough, but
>> isn't:
>
>Crap. Ok, so I extend the strerror_r() configure check to also attempt to
>detect what kind of API it features.
>
>HAVE_POSIX_STRERROR_R and HAVE_GLIBC_STRERROR_R will be defined accordingly.
[...]

That, and the change you did to lib/[curl_]strerror.c should do it. Looks ok
on Linux.

[AIX configure]
>
>Hm, I'll try to make it set _THREAD_SAFE and check again. It comes with the
>same commit as the extension mentioned above.

It's not dectecting it, and worse -- it doesn't even try. I can't figure
out why. The same 'configure' script that did 'checking for strerror_r' on
my Linux box doesn't do that check when executed on AIX, and I can't figure
out why.

-Tor
Received on 2004-03-25