1
0
mirror of https://github.com/lammertb/libhttp.git synced 2026-01-03 16:02:30 +03:00

FreeBSD also uses the XSI version of strerror_r

This commit is contained in:
Lammert Bies
2021-07-31 12:14:33 +02:00
parent 8ed6823cde
commit 3e863424c1

View File

@@ -167,7 +167,7 @@ LIBHTTP_API char *httplib_error_string( int error_code, char *buf, size_t buf_le
#else /* not _WIN32 */
#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! defined(_GNU_SOURCE)) /* XSI version of strerror_r */
#if defined(__FreeBSD__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! defined(_GNU_SOURCE)) /* XSI version of strerror_r */
int return_val;