From 1f31c8e0a9855478d646ff8f2507d3b444704f37 Mon Sep 17 00:00:00 2001 From: Egor Tsyganchuk Date: Tue, 31 Mar 2026 14:07:30 +0300 Subject: [PATCH] Add OpenSSL patch to include in s_server.c - Introduced a check in build-libraries.sh to add the include directive to apps/s_server.c if it is missing. - This patch ensures compatibility with systems that require this header for proper functionality of the OpenSSL s_server application. --- build-libraries.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build-libraries.sh b/build-libraries.sh index 9b29b80..4c6f197 100755 --- a/build-libraries.sh +++ b/build-libraries.sh @@ -94,6 +94,12 @@ cd "${TOP}" export CFLAGS="" export CXXFLAGS="" +OPENSSL_S_SERVER_FILE="${LIB_BUILD_DIR}/openssl-${OPENSSL_VER}/apps/s_server.c" +if [ -f "${OPENSSL_S_SERVER_FILE}" ] && ! grep -q '^#include $' "${OPENSSL_S_SERVER_FILE}"; then + echo "== Патч OpenSSL: добавляю в apps/s_server.c ==" + sed -i '/^#ifndef OPENSSL_NO_SOCK/i #include ' "${OPENSSL_S_SERVER_FILE}" +fi + cd "${LIB_BUILD_DIR}/openssl-${OPENSSL_VER}" ./Configure linux-armv4 \ --prefix=${SYSROOT_USR_DIR} \