[libyaml] Fix build error (#7277)

This commit is contained in:
wangli28 2019-07-18 15:07:09 +08:00 committed by Phil Christensen
parent 45e53e13f6
commit d7aa6f17b3
3 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: libyaml
Version: 0.2.2
Version: 0.2.2-1
Description: A C library for parsing and emitting YAML.

View File

@ -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);
}
/*

View File

@ -6,6 +6,8 @@ vcpkg_from_github(
REF 0.2.2
SHA512 455494591014a97c4371a1f372ad09f0d6e487e4f1d3419c98e9cd2f16d43a0cf9a0787d7250bebee8b8d400df4626f5acd81e90139e54fa574a66ec84964c06
HEAD_REF master
PATCHES
fix-POSIX_name.patch
)
vcpkg_configure_cmake(