fix messing header (#32367)

This commit is contained in:
Mengna Li 2023-07-06 02:30:46 +08:00 committed by GitHub
parent 6346fb4ea8
commit b990e9576c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 15 deletions

View File

@ -1,13 +0,0 @@
diff --git a/sleepy_discord/CMakeLists.txt b/sleepy_discord/CMakeLists.txt
index 6c134141..2d115985 100644
--- a/sleepy_discord/CMakeLists.txt
+++ b/sleepy_discord/CMakeLists.txt
@@ -84,7 +84,7 @@ if (NOT ONLY_SLEEPY_DISCORD)
elseif(USE_BOOST_ASIO)
#Look for boost as an alt
find_package(Boost REQUIRED)
- list(APPEND LIBRARIES_TO_LINK ${Boost_LIBRARIES})
+ list(APPEND LIBRARIES_INCLUDE_DIRS "${Boost_INCLUDE_DIRS}")
list(APPEND LIB_CONFIG "EXISTENT_BOOST_ASIO")
list(APPEND LIB_CONFIG "EXISTENT_ASIO")
list(APPEND REQUIRED_PACKAGES "Boost")

View File

@ -0,0 +1,12 @@
diff --git a/include/sleepy_discord/zlib_compression.h b/include/sleepy_discord/zlib_compression.h
index 9d95c58..b2d418e 100644
--- a/include/sleepy_discord/zlib_compression.h
+++ b/include/sleepy_discord/zlib_compression.h
@@ -9,6 +9,7 @@
#include <forward_list>
#include <string>
#include <mutex>
+#include <cstring>
namespace SleepyDiscord {
//This Queue is basicly a single linked list with the back and size stored

View File

@ -12,6 +12,8 @@ vcpkg_from_github(
REF 70b9ec13427ea68de6f4213e9dfec6129fbab21b
SHA512 c91fbb9a672257c63ee83b40b62961b89568ca33081048b440876c390a2a2e11c602aaf43a6c9485fd85a91248f34a70d7b9ea769d0cfcd4b35b80d58a6ad737
HEAD_REF develop
PATCHES
fix-messing-header.patch
)
# Handle version data here to prevent issues from doing this twice in parallel

View File

@ -1,7 +1,7 @@
{
"name": "sleepy-discord",
"version-date": "2022-02-05",
"port-version": 1,
"port-version": 2,
"description": "C++ library for the Discord chat client",
"homepage": "https://yourwaifu.dev/sleepy-discord/",
"dependencies": [

View File

@ -7562,7 +7562,7 @@
},
"sleepy-discord": {
"baseline": "2022-02-05",
"port-version": 1
"port-version": 2
},
"slikenet": {
"baseline": "2021-06-07",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "594857bed2d04f35b594acbf4f1488c4ae4c4ad0",
"version-date": "2022-02-05",
"port-version": 2
},
{
"git-tree": "7d9b72be7b331d4451d11594b175b0e1f97a75ab",
"version-date": "2022-02-05",