Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libuv] add # ifndef ssize_t #40316

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ports/libuv/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 81a9580bc51c22385de4dab748968477b5e552aa25f901c376e3ffac624e0e05362b48239222e826cad900329f9a7cbdb080794fb4ada9ca14196efc2969cc57
HEAD_REF v1.x
PATCHES fix-build-type.patch
PATCHES
fix-build-type.patch
ssize_t.patch
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBUV_BUILD_SHARED)
Expand Down
14 changes: 14 additions & 0 deletions ports/libuv/ssize_t.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/include/uv/win.h b/include/uv/win.h
index 12ac53b4..6e1abd5b 100644
--- a/include/uv/win.h
+++ b/include/uv/win.h
@@ -24,7 +24,9 @@
#endif

#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
+# ifndef ssize_t
typedef intptr_t ssize_t;
+# endif
# define SSIZE_MAX INTPTR_MAX
# define _SSIZE_T_
# define _SSIZE_T_DEFINED
1 change: 1 addition & 0 deletions ports/libuv/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libuv",
"version-semver": "1.48.0",
"port-version": 1,
"description": "libuv is a multi-platform support library with a focus on asynchronous I/O.",
"homepage": "https://github.com/libuv/libuv",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5202,7 +5202,7 @@
},
"libuv": {
"baseline": "1.48.0",
"port-version": 0
"port-version": 1
},
"libuvc": {
"baseline": "0.0.7",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libuv.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9acba527010351e148700213675f5ed81fd2300e",
"version-semver": "1.48.0",
"port-version": 1
},
{
"git-tree": "eb297582074da541775cf29ad02a7dfe8a5a57e1",
"version-semver": "1.48.0",
Expand Down