aboutsummaryrefslogtreecommitdiff
path: root/ports/grpc
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2020-03-09 16:37:52 -0700
committerRobert Schumacher <roschuma@microsoft.com>2020-03-09 16:45:37 -0700
commit670a2656df7ac34937ad4eb7c14eeba772954c9d (patch)
tree9c7e2cc87a5f3938d096985c994d93fe9b175c9e /ports/grpc
parentd0b1f2a9e8ed1ea53d181d13c69e15cf775148db (diff)
downloadvcpkg-670a2656df7ac34937ad4eb7c14eeba772954c9d.tar.gz
vcpkg-670a2656df7ac34937ad4eb7c14eeba772954c9d.zip
[grpc][openssl][upb] Fix install on uwp
Diffstat (limited to 'ports/grpc')
-rw-r--r--ports/grpc/portfile.cmake1
-rw-r--r--ports/grpc/snprintf.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/ports/grpc/portfile.cmake b/ports/grpc/portfile.cmake
index efebdb0fa..96d56097a 100644
--- a/ports/grpc/portfile.cmake
+++ b/ports/grpc/portfile.cmake
@@ -15,6 +15,7 @@ vcpkg_from_github(
00004-link-gdi32-on-windows.patch
00005-fix-uwp-error.patch
00009-use-system-upb.patch
+ snprintf.patch
)
if(VCPKG_TARGET_IS_UWP OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
diff --git a/ports/grpc/snprintf.patch b/ports/grpc/snprintf.patch
new file mode 100644
index 000000000..f658f9c4f
--- /dev/null
+++ b/ports/grpc/snprintf.patch
@@ -0,0 +1,12 @@
+diff --git a/src/core/tsi/alts/crypt/aes_gcm.cc b/src/core/tsi/alts/crypt/aes_gcm.cc
+index c638ce7..3dc3b2e 100644
+--- a/src/core/tsi/alts/crypt/aes_gcm.cc
++++ b/src/core/tsi/alts/crypt/aes_gcm.cc
+@@ -28,6 +28,7 @@
+ #include <openssl/evp.h>
+ #include <openssl/hmac.h>
+ #include <string.h>
++#include <cstdio>
+
+ #include <grpc/support/alloc.h>
+