mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:29:00 +08:00
[libyaml] Fix build error (#7277)
This commit is contained in:
parent
45e53e13f6
commit
d7aa6f17b3
@ -1,3 +1,3 @@
|
||||
Source: libyaml
|
||||
Version: 0.2.2
|
||||
Version: 0.2.2-1
|
||||
Description: A C library for parsing and emitting YAML.
|
||||
|
13
ports/libyaml/fix-POSIX_name.patch
Normal file
13
ports/libyaml/fix-POSIX_name.patch
Normal 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);
|
||||
}
|
||||
|
||||
/*
|
@ -6,6 +6,8 @@ vcpkg_from_github(
|
||||
REF 0.2.2
|
||||
SHA512 455494591014a97c4371a1f372ad09f0d6e487e4f1d3419c98e9cd2f16d43a0cf9a0787d7250bebee8b8d400df4626f5acd81e90139e54fa574a66ec84964c06
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-POSIX_name.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
|
Loading…
Reference in New Issue
Block a user