FreeBSD also uses the XSI version of strerror_r
@@ -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;
