From 38d6d35aac287806d19998597b35b4754f91059a Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Sun, 4 Jun 2023 18:44:33 -0700 Subject: [PATCH] libressl: Disable endian.h check for iOS. --- CMakeLists.txt | 8 +++++--- README.md | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a993d94..2f35f89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,9 +277,11 @@ if(HAVE_MEMMEM) add_definitions(-DHAVE_MEMMEM) endif() -check_include_files(endian.h HAVE_ENDIAN_H) -if(HAVE_ENDIAN_H) - add_definitions(-DHAVE_ENDIAN_H) +if (NOT IOS) + check_include_files(endian.h HAVE_ENDIAN_H) + if(HAVE_ENDIAN_H) + add_definitions(-DHAVE_ENDIAN_H) + endif() endif() check_include_files(machine/endian.h HAVE_MACHINE_ENDIAN_H) diff --git a/README.md b/README.md index f1f8972..1dd6a67 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Built from https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.8.0.tar.gz Modifications: * Removed targets for apps, tests, install, uninstall. * Removed extra files like unneeded target sources, Makefiles, autoconf files. +* Disabled endian.h check for iOS as it breaks build. ===