Ping ping ping ping ping :-) Paul had some questions that I wasn't able to answer, cf.
http://lists.gnu.org/archive/html/bug-gnulib/2014-02/msg00042.html However, this shouldn't be a hindrance to apply my small bug fix, so please... Werner ====================================================================== From: Werner LEMBERG <w...@gnu.org> Subject: Re: strerror_r.c doesn't compile if CC=g++ Date: Tue, 25 Feb 2014 08:17:31 +0100 (CET) > > Ping! > > > Werner > > > ====================================================================== > > >> [v0.1-78-g47f93b0] >> >> The following patch is necessary to make `strerror_r.c' compile if >> CC=g++. Similar code is already used for the autoconf test. >> >> >> Werner >> >> ====================================================================== >> >> diff --git a/lib/strerror_r.c b/lib/strerror_r.c >> index 4aa96cb..c4fb72e 100644 >> --- a/lib/strerror_r.c >> +++ b/lib/strerror_r.c >> @@ -34,7 +34,11 @@ >> #if (__GLIBC__ >= 2 || defined __UCLIBC__ || defined __CYGWIN__) && >> HAVE___XPG_STRERROR_R /* glibc >= 2.3.4, cygwin >= 1.7.9 */ >> >> # define USE_XPG_STRERROR_R 1 >> -extern int __xpg_strerror_r (int errnum, char *buf, size_t buflen); >> +extern >> +#ifdef __cplusplus >> +"C" >> +#endif >> +int __xpg_strerror_r (int errnum, char *buf, size_t buflen); >> >> #elif HAVE_DECL_STRERROR_R && !(__GLIBC__ >= 2 || defined __UCLIBC__ || >> defined __CYGWIN__) >>