Files
swift-nio-ssl/scripts/patch-1-inttypes.patch
T
George Barnett 125078ea20 Re-namespace BoringSSL from CNIOBoringSSL/ to CNIOBoringSSL_ (#122)
Motivation:

When including an xcodeproj generated by SwiftPM (which builds
CNIOBoringSSL) into an xcodeproj which wasn't generated by SwiftPM it
doesn't know about the correct header paths.

Modifications:

Update the vendor-boringssl script to:
- Namespace BoringSSL with CNIOBoringSSL_ instead of CNIOBoringSSL/
- Create an umbrealla CNIOBoringSSL header
- Apply a patch to replace inttypes.h with sys/types.h in bn.h
- Apply a patch to conditionally include arm_arch.h

BoringSSL was also updated to: ae223d6138807a13006342edfeef32e813246b39

Result:

Non-SwiftPM xcodeproj's can build a SwiftPM generated xcodeproj
which includes CNIOBoringSSL.
2019-08-09 10:23:16 +01:00

26 lines
883 B
Diff

diff --git a/Sources/CNIOBoringSSL/crypto/hrss/hrss.c b/Sources/CNIOBoringSSL/crypto/hrss/hrss.c
index 93a214e..eee4e58 100644
--- a/Sources/CNIOBoringSSL/crypto/hrss/hrss.c
+++ b/Sources/CNIOBoringSSL/crypto/hrss/hrss.c
@@ -13,6 +13,7 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
#include <CNIOBoringSSL_hrss.h>
+#include <inttypes.h>
#include <assert.h>
#include <stdio.h>
diff --git a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
index c86c1ef..7013140 100644
--- a/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
+++ b/Sources/CNIOBoringSSL/include/CNIOBoringSSL_bn.h
@@ -126,7 +126,7 @@
#include "CNIOBoringSSL_base.h"
#include "CNIOBoringSSL_thread.h"
-#include <inttypes.h> // for PRIu64 and friends
+#include <sys/types.h>
#include <stdio.h> // for FILE*
#if defined(__cplusplus)