* lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
(either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
by gnulib's <string.h> replacement), assume it has the POSIX signature,
not the glibc signature.
+2011-05-29 Bruno Haible <bruno@clisp.org>
+
+ argp: Allow coexistence with strerror_r-posix module.
+ * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
+ (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
+ by gnulib's <string.h> replacement), assume it has the POSIX signature,
+ not the glibc signature.
+
2011-05-28 Bruno Haible <bruno@clisp.org>
gnulib-tool: Alternative structure of testdirs, similar to --import.
char const *s = NULL;
putc_unlocked (':', stream);
putc_unlocked (' ', stream);
-#if _LIBC || (HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P)
+#if _LIBC || (HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P && !defined strerror_r)
s = __strerror_r (errnum, buf, sizeof buf);
#elif HAVE_DECL_STRERROR_R
if (__strerror_r (errnum, buf, sizeof buf) == 0)