aboutsummaryrefslogtreecommitdiff
path: root/ports/itpp/fix-uwp.patch
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-08-02 08:54:45 +0800
committerPhil Christensen <philc@microsoft.com>2019-08-01 17:54:45 -0700
commitbacbcf3527390ae7d20cd9660d82a180f2c8e065 (patch)
tree1dee3a182b8762b3a31ac6be6b01248b7c422f05 /ports/itpp/fix-uwp.patch
parented7822f5af596076143fe0d89bb1dba04ef26c8f (diff)
downloadvcpkg-bacbcf3527390ae7d20cd9660d82a180f2c8e065.tar.gz
vcpkg-bacbcf3527390ae7d20cd9660d82a180f2c8e065.zip
[manyports]Regenerate patches and modify how the patches are used. (#7484)
* [ccfits]Regenerate patches and modify how the patches are used. * [itpp]Regenerate patches and modify how the patches are used. * [mpg123]Regenerate patches and modify how the patches are used. * [qwt]Regenerate patches and modify how the patches are used. * [sdl1]Remove a patche and modify how the patches are used.
Diffstat (limited to 'ports/itpp/fix-uwp.patch')
-rw-r--r--ports/itpp/fix-uwp.patch11
1 files changed, 7 insertions, 4 deletions
diff --git a/ports/itpp/fix-uwp.patch b/ports/itpp/fix-uwp.patch
index 18e5fe4eb..69805922a 100644
--- a/ports/itpp/fix-uwp.patch
+++ b/ports/itpp/fix-uwp.patch
@@ -1,12 +1,15 @@
diff --git a/itpp/base/timing.cpp b/itpp/base/timing.cpp
-index 58178e4..47d662e 100644
+index 58178e4..6b173d0 100644
--- a/itpp/base/timing.cpp
+++ b/itpp/base/timing.cpp
-@@ -51,6 +51,7 @@
-
+@@ -52,6 +52,10 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <windows.h>
-+#include <Winsock2.h>
++#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
++#include <Winsock2.h>
++#endif
++
int gettimeofday(struct timeval* p, void*)
{
+ union {