-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
vcpkg_overlay_ports/curl/nscurl/curl_GetFileSizeEx_schannel_verify.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
diff --git a/lib/vtls/schannel_verify.c b/lib/vtls/schannel_verify.c | ||
--- a/lib/vtls/schannel_verify.c | ||
+++ b/lib/vtls/schannel_verify.c | ||
@@ -267,3 +267,4 @@ | ||
|
||
- if(!GetFileSizeEx(ca_file_handle, &file_size)) { | ||
+ file_size.LowPart = GetFileSize(ca_file_handle, &file_size.HighPart); | ||
+ if(file_size.LowPart == INVALID_FILE_SIZE && GetLastError() != NO_ERROR) { | ||
char buffer[STRERROR_LEN]; |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
vcpkg_overlay_ports/curl/nscurl/curl_ftruncate_WindowsCache.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
diff -git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake | ||
--- a/CMake/Platforms/WindowsCache.cmake | ||
+++ b/CMake/Platforms/WindowsCache.cmake | ||
@@ -39,3 +39,3 @@ | ||
set(HAVE_STRCASECMP 1) | ||
- set(HAVE_FTRUNCATE 1) | ||
+ set(HAVE_FTRUNCATE 0) # nscurl: The mingw-x64 implementation of ftruncate() calls FindFirstVolume/FindNextVolume/GetFileSizeEx, unavailable in NT4 */ | ||
set(HAVE_SYS_PARAM_H 1) |
9 changes: 9 additions & 0 deletions
9
vcpkg_overlay_ports/curl/nscurl/curl_ftruncate_config-win32.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
diff --git a/lib/config-win32.h b/lib/config-win32.h | ||
--- a/lib/config-win32.h | ||
+++ b/lib/config-win32.h | ||
@@ -125,3 +125,4 @@ | ||
#if defined(__MINGW32__) | ||
-#define HAVE_FTRUNCATE 1 | ||
+/* nscurl: The mingw-x64 implementation of ftruncate() calls FindFirstVolume/FindNextVolume/GetFileSizeEx, unavailable in NT4 */ | ||
+/* #define HAVE_FTRUNCATE 1 */ | ||
#endif |
12 changes: 12 additions & 0 deletions
12
vcpkg_overlay_ports/curl/nscurl/curl_ftruncate_tool_cb_hdr.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c | ||
--- a/src/tool_cb_hdr.c | ||
+++ b/src/tool_cb_hdr.c | ||
@@ -146,2 +146,8 @@ | ||
} | ||
+#if defined(_WIN32) | ||
+ /* nscurl: mark the end-of-file */ | ||
+ if(!SetEndOfFile((HANDLE)_get_osfhandle(etag_save->stream))) { | ||
+ return CURL_WRITEFUNC_ERROR; | ||
+ } | ||
+#endif | ||
#endif |
12 changes: 12 additions & 0 deletions
12
vcpkg_overlay_ports/curl/nscurl/curl_ftruncate_tool_operate.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -git a/src/tool_operate.c b/src/tool_operate.c | ||
--- a/src/tool_operate.c | ||
+++ b/src/tool_operate.c | ||
@@ -610,2 +610,8 @@ | ||
rc = fseek(outs->stream, (long)outs->init, SEEK_SET); | ||
+#if defined(_WIN32) | ||
+ /* nscurl: mark the end-of-file */ | ||
+ if(!SetEndOfFile((HANDLE)_get_osfhandle(outs->stream))) { | ||
+ rc = -1; | ||
+ } | ||
+#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters