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 +