diff -urN socat-1.7.4.4.orig/sslcls.c socat-1.7.4.4/sslcls.c --- socat-1.7.4.4.orig/sslcls.c 2022-11-06 14:16:36.721072121 +0100 +++ socat-1.7.4.4/sslcls.c 2022-11-06 14:19:45.733085734 +0100 @@ -5,6 +5,10 @@ /* explicit system call and C library trace function, for those who miss strace */ +#include "xiosysincludes.h" +#if WITH_OPENSSL /* make this address configure dependend */ +#endif +#include #include "config.h" #include "xioconfig.h" /* what features are enabled */ diff -urN socat-1.7.4.4.orig/sslcls.h socat-1.7.4.4/sslcls.h --- socat-1.7.4.4.orig/sslcls.h 2022-11-06 14:16:36.721072121 +0100 +++ socat-1.7.4.4/sslcls.h 2022-11-06 14:18:36.433080743 +0100 @@ -2,6 +2,10 @@ /* Copyright Gerhard Rieger and contributors (see file CHANGES) */ /* Published under the GNU General Public License V.2, see file COPYING */ +#if defined(LIBRESSL_VERSION_NUMBER) +#undef HAVE_OPENSSL_INIT_SSL +#endif + #ifndef __sslcls_h_included #define __sslcls_h_included 1 diff -urN socat-1.7.4.4.orig/xioconfig.h socat-1.7.4.4/xioconfig.h --- socat-1.7.4.4.orig/xioconfig.h 2022-11-06 14:16:36.719072120 +0100 +++ socat-1.7.4.4/xioconfig.h 2022-11-06 14:18:36.433080743 +0100 @@ -2,6 +2,10 @@ /* Copyright Gerhard Rieger and contributors (see file CHANGES) */ /* Published under the GNU General Public License V.2, see file COPYING */ +#if defined(LIBRESSL_VERSION_NUMBER) +#undef HAVE_OPENSSL_INIT_SSL +#endif + #ifndef __xioconfig_h_included #define __xioconfig_h_included 1