diff options
| author | wangli28 <47812810+wangli28@users.noreply.github.com> | 2019-07-18 15:07:09 +0800 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-07-18 00:07:09 -0700 |
| commit | d7aa6f17b34d1e823485c5a5db3463debe30538c (patch) | |
| tree | 1981e6f339746870f309b69f3b4b7dc3e8ff6401 | |
| parent | 45e53e13f6ef020a05945b3466f043ac3b3799be (diff) | |
| download | vcpkg-d7aa6f17b34d1e823485c5a5db3463debe30538c.tar.gz vcpkg-d7aa6f17b34d1e823485c5a5db3463debe30538c.zip | |
[libyaml] Fix build error (#7277)
| -rw-r--r-- | ports/libyaml/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libyaml/fix-POSIX_name.patch | 13 | ||||
| -rw-r--r-- | ports/libyaml/portfile.cmake | 2 |
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(
|
