Add OpenSSL patch to include <sys/stat.h> in s_server.c
- Introduced a check in build-libraries.sh to add the <sys/stat.h> 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.
This commit is contained in:
@@ -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 <sys/stat.h>$' "${OPENSSL_S_SERVER_FILE}"; then
|
||||
echo "== Патч OpenSSL: добавляю <sys/stat.h> в apps/s_server.c =="
|
||||
sed -i '/^#ifndef OPENSSL_NO_SOCK/i #include <sys/stat.h>' "${OPENSSL_S_SERVER_FILE}"
|
||||
fi
|
||||
|
||||
cd "${LIB_BUILD_DIR}/openssl-${OPENSSL_VER}"
|
||||
./Configure linux-armv4 \
|
||||
--prefix=${SYSROOT_USR_DIR} \
|
||||
|
||||
Reference in New Issue
Block a user