aboutsummaryrefslogtreecommitdiff
path: root/ports/curl/0002_fix_uwp.patch
blob: ae36158755b9644352caaf82d469668d7fa86264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 62b7b33..9b0e2e1 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -107,7 +107,9 @@ endif()
 
 target_link_libraries(${LIB_NAME} ${CURL_LIBS})
 
-if(WIN32)
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+  add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
+elseif(WIN32)
   add_definitions(-D_USRDLL)
 endif()