--- embedaddon/mpd/src/contrib/libpdel/io/ssl_fp.c 2021/03/17 00:39:23 1.1.1.2 +++ embedaddon/mpd/src/contrib/libpdel/io/ssl_fp.c 2023/09/27 11:08:01 1.1.1.2.2.1 @@ -53,6 +53,7 @@ #include #include +#include #include "structs/structs.h" #include "structs/type/array.h" @@ -364,6 +365,7 @@ ssl_log(ssl_logger_t *logger, void *logarg) } #endif +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x30000000L /* Add function */ if ((t = ERR_func_error_string(e)) != NULL) { strlcat(buf, t, sizeof(buf)); @@ -372,6 +374,7 @@ ssl_log(ssl_logger_t *logger, void *logarg) snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "func=%u: ", ERR_GET_FUNC(e)); } +#endif /* Add reason */ if ((t = ERR_reason_error_string(e)) != NULL) {