Fix for logic gating strerror_r()

This commit is contained in:
Lealem Amedie
2023-03-22 17:29:13 -06:00
parent 835e8a18c7
commit a5e7a20c93

View File

@ -651,7 +651,8 @@ static void render_error_message(const char* msg, int es)
* infelicitous...
*/
#if !defined(STRING_USER) && !defined(NO_ERROR_STRINGS) && \
(defined(_GNU_SOURCE) || defined(__USE_GNU) || \
(defined(__STDC_VERSION__) && (__STDC_VERSION__ > 199901L)) && \
((defined(__GLIBC__) && (__GLIBC__ >= 2)) || \
(defined(__USE_XOPEN2K) && \
defined(_POSIX_C_SOURCE) && \
(_POSIX_C_SOURCE >= 200112L)))