aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-27 14:36:35 +0200
committerGitHub <[email protected]>2023-10-27 14:36:35 +0200
commit2ffb62b6780c2d947b883e87a9534cf71d8b61c5 (patch)
tree62a890a672d37a7f584d1d0f96ae48b5628b9978 /src/zenutil
parent0.2.30-pre0 (diff)
downloadzen-2ffb62b6780c2d947b883e87a9534cf71d8b61c5.tar.xz
zen-2ffb62b6780c2d947b883e87a9534cf71d8b61c5.zip
added missing includes (#504)
this change adds some includes to files which "inherit" includes from elsewhere this was exposed on another branch when removing some heavy dependencies from central headers
Diffstat (limited to 'src/zenutil')
-rw-r--r--src/zenutil/cache/cacherequests.cpp1
-rw-r--r--src/zenutil/include/zenutil/logging/rotatingfilesink.h2
-rw-r--r--src/zenutil/include/zenutil/zenserverprocess.h1
-rw-r--r--src/zenutil/zenserverprocess.cpp3
4 files changed, 7 insertions, 0 deletions
diff --git a/src/zenutil/cache/cacherequests.cpp b/src/zenutil/cache/cacherequests.cpp
index 4c865ec22..51fb61c27 100644
--- a/src/zenutil/cache/cacherequests.cpp
+++ b/src/zenutil/cache/cacherequests.cpp
@@ -11,6 +11,7 @@
#include <string>
#include <string_view>
+#include <unordered_map>
#if ZEN_WITH_TESTS
# include <zencore/testing.h>
diff --git a/src/zenutil/include/zenutil/logging/rotatingfilesink.h b/src/zenutil/include/zenutil/logging/rotatingfilesink.h
index 9468addee..f28e908eb 100644
--- a/src/zenutil/include/zenutil/logging/rotatingfilesink.h
+++ b/src/zenutil/include/zenutil/logging/rotatingfilesink.h
@@ -4,8 +4,10 @@
#include <zenutil/basicfile.h>
+ZEN_THIRD_PARTY_INCLUDES_START
#include <spdlog/details/log_msg.h>
#include <spdlog/sinks/base_sink.h>
+ZEN_THIRD_PARTY_INCLUDES_END
#include <filesystem>
diff --git a/src/zenutil/include/zenutil/zenserverprocess.h b/src/zenutil/include/zenutil/zenserverprocess.h
index 12dd36df0..60adfba54 100644
--- a/src/zenutil/include/zenutil/zenserverprocess.h
+++ b/src/zenutil/include/zenutil/zenserverprocess.h
@@ -9,6 +9,7 @@
#include <atomic>
#include <filesystem>
+#include <functional>
#include <optional>
namespace zen {
diff --git a/src/zenutil/zenserverprocess.cpp b/src/zenutil/zenserverprocess.cpp
index 46248b6f1..b1666ad0a 100644
--- a/src/zenutil/zenserverprocess.cpp
+++ b/src/zenutil/zenserverprocess.cpp
@@ -15,7 +15,10 @@
#if ZEN_PLATFORM_WINDOWS
# include <zencore/windows.h>
#else
+# include <fcntl.h>
# include <sys/mman.h>
+# include <sys/stat.h>
+# include <unistd.h>
#endif
//////////////////////////////////////////////////////////////////////////