From 9a9119669bfedd6e2f058e30beb2cbb72c3be69d Mon Sep 17 00:00:00 2001 From: Anton Tieleman Date: Sat, 4 Mar 2017 13:06:21 +0100 Subject: [PATCH] Preprocessor error for unknown targets and include for TargetConditionals.h --- build-libssl.sh | 4 +++- include/opensslconf-template.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build-libssl.sh b/build-libssl.sh index 803f155..e4cba5e 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -536,7 +536,9 @@ if [ ${#OPENSSLCONF_ALL[@]} -gt 1 ]; then echo "# include " >> "${OPENSSLCONF_INTERMEDIATE}" done - # Finish with #endif + # Finish + echo "#else" >> "${OPENSSLCONF_INTERMEDIATE}" + echo '# error Unable to determine target or target not included in OpenSSL build' >> "${OPENSSLCONF_INTERMEDIATE}" echo "#endif" >> "${OPENSSLCONF_INTERMEDIATE}" fi diff --git a/include/opensslconf-template.h b/include/opensslconf-template.h index fa24c60..6aa1060 100644 --- a/include/opensslconf-template.h +++ b/include/opensslconf-template.h @@ -6,3 +6,5 @@ * See also https://github.com/x2on/OpenSSL-for-iPhone/issues/126 and referenced pull requests */ +#include +