Add HAVE_STRERROR_R_CHAR_P (GH PR #53)

This commit is contained in:
Fred Helmesjö 2022-09-20 15:14:03 +02:00 committed by Boris Kolpackov
parent 25372887c5
commit a991a07e7b

View File

@ -0,0 +1,15 @@
// STRERROR_R_CHAR_P
#undef STRERROR_R_CHAR_P
/* GNU-specific.
*
* Note that while the HAVE_STRERROR_R_CHAR_P would have been the better
* name (since we are testing for presence/absence), this name is used by
* the autoconf's AC_FUNC_STRERROR_R test.
*/
#ifdef __GLIBC__
# if defined(_GNU_SOURCE) || (_POSIX_C_SOURCE < 200112L)
# define STRERROR_R_CHAR_P 1
# endif
#endif