Files
swift-nio-ssl/scripts/patch-1-inttypes.patch
Cory Benfield 86458a336b Update BoringSSL to 8eb25be6fa18d475291122887a7bccd3762ff236 (#607)
As a standard pattern, the vendoring script needed some changes, as did
our internal code.

The biggest change here is that BoringSSL has changed its name mangling
scheme. This causes us to no longer need to explicitly write the prefix
out anymore: in fact, doing that causes compiler errors. So this patch
rewrites the code to resolve that issue.

Along the way, I've also added some checks for making sure the name
mangling is correct.
2026-10-09 17:19:47 +00:00

25 lines
846 B
Diff

diff --git a/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc b/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc
index 93a214e..eee4e58 100644
--- a/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc
+++ b/Sources/CNIOBoringSSL/crypto/hrss/hrss.cc
@@ -13,6 +13,7 @@
// limitations under the License.
#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
@@ -19,6 +19,7 @@
#include "CNIOBoringSSL_base.h" // IWYU pragma: export
#include <inttypes.h> // for PRIu64 and friends
+#include <sys/types.h>
#include <stdio.h> // for FILE*
#if defined(__cplusplus)