From 9b07cb4dce8c791c4e9e84760c9e4eaed7a46ca1 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 15 Oct 2023 16:34:07 +0200 Subject: [PATCH] compile fixes for toxcore and gcc12 --- external/tox_ngc_ft1/tox_ngc_ft1 | 2 +- external/toxcore/CMakeLists.txt | 2 ++ src/hash_utils.hpp | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/external/tox_ngc_ft1/tox_ngc_ft1 b/external/tox_ngc_ft1/tox_ngc_ft1 index 2a6dca6..08a083f 160000 --- a/external/tox_ngc_ft1/tox_ngc_ft1 +++ b/external/tox_ngc_ft1/tox_ngc_ft1 @@ -1 +1 @@ -Subproject commit 2a6dca69c79b95cd2593374bbdc1eccbeec24faa +Subproject commit 08a083f346bbd06cebe4ba619b5130340a5d4c14 diff --git a/external/toxcore/CMakeLists.txt b/external/toxcore/CMakeLists.txt index db87d06..f3d2825 100644 --- a/external/toxcore/CMakeLists.txt +++ b/external/toxcore/CMakeLists.txt @@ -91,6 +91,8 @@ add_library(toxcore STATIC ${TOX_DIR}toxcore/logger.h ${TOX_DIR}toxcore/Messenger.c ${TOX_DIR}toxcore/Messenger.h + ${TOX_DIR}toxcore/mem.c + ${TOX_DIR}toxcore/mem.h ${TOX_DIR}toxcore/mono_time.c ${TOX_DIR}toxcore/mono_time.h ${TOX_DIR}toxcore/net_crypto.c diff --git a/src/hash_utils.hpp b/src/hash_utils.hpp index 4de52ec..d535aef 100644 --- a/src/hash_utils.hpp +++ b/src/hash_utils.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include // returns the 20bytes sha1 hash