X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ferror.c;h=5dbd4d726ee812ddedc5c7729c5960244d286cf2;hb=115741fa52092c59e33d75428b776513caa88f87;hp=676ce1d685132f46217969ea4746cc28711da462;hpb=3e6339641eedb691ab9a8f2435b972aac725ea5c;p=gnulib.git diff --git a/lib/error.c b/lib/error.c index 676ce1d68..5dbd4d726 100644 --- a/lib/error.c +++ b/lib/error.c @@ -49,6 +49,13 @@ void exit (); #include "error.h" +#ifndef HAVE_DECL_STRERROR_R +"this configure-time declaration test was not run" +#endif +#if !HAVE_DECL_STRERROR_R +char *strerror_r (); +#endif + #ifndef _ # define _(String) String #endif @@ -232,7 +239,7 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist) ++error_message_count; if (errnum) { -#if defined HAVE_STRERROR_R || defined _LIBC +#if defined HAVE_STRERROR_R || _LIBC char errbuf[1024]; # if HAVE_WORKING_STRERROR_R || _LIBC fprintf (stderr, ": %s", __strerror_r (errnum, errbuf, sizeof errbuf));