aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/libyaml/CONTROL2
-rw-r--r--ports/libyaml/fix-POSIX_name.patch13
-rw-r--r--ports/libyaml/portfile.cmake2
3 files changed, 16 insertions, 1 deletions
diff --git a/ports/libyaml/CONTROL b/ports/libyaml/CONTROL
index df8b2b1fe..e38c0f9d0 100644
--- a/ports/libyaml/CONTROL
+++ b/ports/libyaml/CONTROL
@@ -1,3 +1,3 @@
Source: libyaml
-Version: 0.2.2
+Version: 0.2.2-1
Description: A C library for parsing and emitting YAML.
diff --git a/ports/libyaml/fix-POSIX_name.patch b/ports/libyaml/fix-POSIX_name.patch
new file mode 100644
index 000000000..0aa6d211c
--- /dev/null
+++ b/ports/libyaml/fix-POSIX_name.patch
@@ -0,0 +1,13 @@
+diff --git a/src/api.c b/src/api.c
+index e793b08..6f16fc5 100644
+--- a/src/api.c
++++ b/src/api.c
+@@ -63,7 +63,7 @@ yaml_strdup(const yaml_char_t *str)
+ if (!str)
+ return NULL;
+
+- return (yaml_char_t *)strdup((char *)str);
++ return (yaml_char_t *)_strdup((char *)str);
+ }
+
+ /*
diff --git a/ports/libyaml/portfile.cmake b/ports/libyaml/portfile.cmake
index 210fc2d7f..6c6a6b97b 100644
--- a/ports/libyaml/portfile.cmake
+++ b/ports/libyaml/portfile.cmake
@@ -6,6 +6,8 @@ vcpkg_from_github(
REF 0.2.2
SHA512 455494591014a97c4371a1f372ad09f0d6e487e4f1d3419c98e9cd2f16d43a0cf9a0787d7250bebee8b8d400df4626f5acd81e90139e54fa574a66ec84964c06
HEAD_REF master
+ PATCHES
+ fix-POSIX_name.patch
)
vcpkg_configure_cmake(