aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-asio/windows_alloca_header.patch
diff options
context:
space:
mode:
authorCurtis.Bezault <curtbezault@gmail.com>2019-07-23 15:29:49 -0700
committerCurtis.Bezault <curtbezault@gmail.com>2019-07-23 15:29:49 -0700
commit62ec13ba36146f01bfaccbfd5ad22141d6cb061b (patch)
treebe0099257bca99ea991b599acaa5afb541ce1fd0 /ports/boost-asio/windows_alloca_header.patch
parent2f2a45595fa925edeace250b694d70095c42b5fa (diff)
parent3b808a48ce2fafab82bd7b53642a11a08b21c481 (diff)
downloadvcpkg-62ec13ba36146f01bfaccbfd5ad22141d6cb061b.tar.gz
vcpkg-62ec13ba36146f01bfaccbfd5ad22141d6cb061b.zip
Merge build.cpp
Diffstat (limited to 'ports/boost-asio/windows_alloca_header.patch')
-rw-r--r--ports/boost-asio/windows_alloca_header.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/boost-asio/windows_alloca_header.patch b/ports/boost-asio/windows_alloca_header.patch
new file mode 100644
index 000000000..609e1ebfe
--- /dev/null
+++ b/ports/boost-asio/windows_alloca_header.patch
@@ -0,0 +1,15 @@
+diff --git a/include/boost/asio/detail/impl/socket_ops.ipp b/include/boost/asio/detail/impl/socket_ops.ipp
+index 7d7c31f..d2cd468 100644
+--- a/include/boost/asio/detail/impl/socket_ops.ipp
++++ b/include/boost/asio/detail/impl/socket_ops.ipp
+@@ -27,6 +27,10 @@
+ #include <boost/asio/detail/socket_ops.hpp>
+ #include <boost/asio/error.hpp>
+
++#if defined(BOOST_ASIO_WINDOWS)
++#include <malloc.h>
++#endif
++
+ #if defined(BOOST_ASIO_WINDOWS_RUNTIME)
+ # include <codecvt>
+ # include <locale>