aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/zen/cmds/dedup_cmd.cpp2
-rw-r--r--src/zen/cmds/hash_cmd.cpp1
-rw-r--r--src/zen/cmds/rpcreplay_cmd.cpp1
-rw-r--r--src/zen/internalfile.cpp1
-rw-r--r--src/zencore/iobuffer.cpp2
-rw-r--r--src/zenhttp/include/zenhttp/httptest.h1
-rw-r--r--src/zenhttp/testing/httptest.cpp1
-rw-r--r--src/zenhttp/transports/dlltransport.cpp5
-rw-r--r--src/zenserver/cache/cachedisklayer.h1
-rw-r--r--src/zenserver/projectstore/remoteprojectstore.cpp2
-rw-r--r--src/zenserver/vfs/vfsimpl.cpp1
-rw-r--r--src/zenserver/vfs/vfsimpl.h1
-rw-r--r--src/zenstore/blockstore.cpp1
-rw-r--r--src/zenstore/filecas.cpp4
-rw-r--r--src/zenstore/gc.cpp1
-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
19 files changed, 32 insertions, 0 deletions
diff --git a/src/zen/cmds/dedup_cmd.cpp b/src/zen/cmds/dedup_cmd.cpp
index d496cf404..5f74305c7 100644
--- a/src/zen/cmds/dedup_cmd.cpp
+++ b/src/zen/cmds/dedup_cmd.cpp
@@ -4,6 +4,7 @@
#include <zencore/blake3.h>
#include <zencore/filesystem.h>
+#include <zencore/fmtutils.h>
#include <zencore/iobuffer.h>
#include <zencore/logging.h>
#include <zencore/string.h>
@@ -15,6 +16,7 @@
#endif
#include <list>
+#include <unordered_map>
namespace zen {
diff --git a/src/zen/cmds/hash_cmd.cpp b/src/zen/cmds/hash_cmd.cpp
index d1f7a1975..f5541906b 100644
--- a/src/zen/cmds/hash_cmd.cpp
+++ b/src/zen/cmds/hash_cmd.cpp
@@ -3,6 +3,7 @@
#include "hash_cmd.h"
#include <zencore/blake3.h>
+#include <zencore/fmtutils.h>
#include <zencore/logging.h>
#include <zencore/string.h>
#include <zencore/timer.h>
diff --git a/src/zen/cmds/rpcreplay_cmd.cpp b/src/zen/cmds/rpcreplay_cmd.cpp
index d2cfc13ac..10cd3aebd 100644
--- a/src/zen/cmds/rpcreplay_cmd.cpp
+++ b/src/zen/cmds/rpcreplay_cmd.cpp
@@ -4,6 +4,7 @@
#include <zencore/compactbinarybuilder.h>
#include <zencore/filesystem.h>
+#include <zencore/fmtutils.h>
#include <zencore/logging.h>
#include <zencore/scopeguard.h>
#include <zencore/session.h>
diff --git a/src/zen/internalfile.cpp b/src/zen/internalfile.cpp
index 9a2011229..671a2093e 100644
--- a/src/zen/internalfile.cpp
+++ b/src/zen/internalfile.cpp
@@ -13,6 +13,7 @@
# include <sys/file.h>
# include <sys/mman.h>
# include <sys/stat.h>
+# include <unistd.h>
#endif
#include <gsl/gsl-lite.hpp>
diff --git a/src/zencore/iobuffer.cpp b/src/zencore/iobuffer.cpp
index 9043d4d4c..e26c361c0 100644
--- a/src/zencore/iobuffer.cpp
+++ b/src/zencore/iobuffer.cpp
@@ -24,8 +24,10 @@ ZEN_THIRD_PARTY_INCLUDES_END
#if ZEN_PLATFORM_WINDOWS
# include <zencore/windows.h>
#else
+# include <fcntl.h>
# include <sys/stat.h>
# include <sys/mman.h>
+# include <unistd.h>
#endif
#include <gsl/gsl-lite.hpp>
diff --git a/src/zenhttp/include/zenhttp/httptest.h b/src/zenhttp/include/zenhttp/httptest.h
index a4008fb5e..afe71fbce 100644
--- a/src/zenhttp/include/zenhttp/httptest.h
+++ b/src/zenhttp/include/zenhttp/httptest.h
@@ -7,6 +7,7 @@
#include <zenhttp/httpserver.h>
#include <atomic>
+#include <unordered_map>
#if ZEN_WITH_TESTS
diff --git a/src/zenhttp/testing/httptest.cpp b/src/zenhttp/testing/httptest.cpp
index 3a0ad72a9..090f7855e 100644
--- a/src/zenhttp/testing/httptest.cpp
+++ b/src/zenhttp/testing/httptest.cpp
@@ -4,6 +4,7 @@
#include <zencore/compactbinarybuilder.h>
#include <zencore/compactbinarypackage.h>
+#include <zencore/fmtutils.h>
#include <zencore/timer.h>
#if ZEN_WITH_TESTS
diff --git a/src/zenhttp/transports/dlltransport.cpp b/src/zenhttp/transports/dlltransport.cpp
index 5c0084e44..dd4479e39 100644
--- a/src/zenhttp/transports/dlltransport.cpp
+++ b/src/zenhttp/transports/dlltransport.cpp
@@ -3,6 +3,7 @@
#include "dlltransport.h"
#include <zencore/except.h>
+#include <zencore/fmtutils.h>
#include <zencore/logging.h>
#include <zencore/scopeguard.h>
@@ -10,6 +11,10 @@
#include <thread>
#include <vector>
+ZEN_THIRD_PARTY_INCLUDES_START
+#include <fmt/format.h>
+ZEN_THIRD_PARTY_INCLUDES_END
+
#if ZEN_WITH_PLUGINS
namespace zen {
diff --git a/src/zenserver/cache/cachedisklayer.h b/src/zenserver/cache/cachedisklayer.h
index ea390f807..cc6653e28 100644
--- a/src/zenserver/cache/cachedisklayer.h
+++ b/src/zenserver/cache/cachedisklayer.h
@@ -13,6 +13,7 @@ ZEN_THIRD_PARTY_INCLUDES_START
ZEN_THIRD_PARTY_INCLUDES_END
#include <filesystem>
+#include <unordered_map>
namespace zen {
diff --git a/src/zenserver/projectstore/remoteprojectstore.cpp b/src/zenserver/projectstore/remoteprojectstore.cpp
index 02557dfa5..4194c4315 100644
--- a/src/zenserver/projectstore/remoteprojectstore.cpp
+++ b/src/zenserver/projectstore/remoteprojectstore.cpp
@@ -14,6 +14,8 @@
#include <zencore/workthreadpool.h>
#include <zenstore/cidstore.h>
+#include <unordered_map>
+
namespace zen {
/*
diff --git a/src/zenserver/vfs/vfsimpl.cpp b/src/zenserver/vfs/vfsimpl.cpp
index 8acbfba87..3a107cace 100644
--- a/src/zenserver/vfs/vfsimpl.cpp
+++ b/src/zenserver/vfs/vfsimpl.cpp
@@ -12,6 +12,7 @@
#include <zenvfs/vfs.h>
#include <memory>
+#include <unordered_map>
#if ZEN_WITH_VFS
diff --git a/src/zenserver/vfs/vfsimpl.h b/src/zenserver/vfs/vfsimpl.h
index 9e4fdfe99..c33df100b 100644
--- a/src/zenserver/vfs/vfsimpl.h
+++ b/src/zenserver/vfs/vfsimpl.h
@@ -12,6 +12,7 @@
#if ZEN_WITH_VFS
# include <memory>
+# include <unordered_map>
namespace zen {
diff --git a/src/zenstore/blockstore.cpp b/src/zenstore/blockstore.cpp
index c5f978d18..02ee204ad 100644
--- a/src/zenstore/blockstore.cpp
+++ b/src/zenstore/blockstore.cpp
@@ -10,6 +10,7 @@
#include <zencore/trace.h>
#include <algorithm>
+#include <unordered_map>
ZEN_THIRD_PARTY_INCLUDES_START
#include <tsl/robin_map.h>
diff --git a/src/zenstore/filecas.cpp b/src/zenstore/filecas.cpp
index d41f449d3..24d0a39bb 100644
--- a/src/zenstore/filecas.cpp
+++ b/src/zenstore/filecas.cpp
@@ -35,6 +35,10 @@ ZEN_THIRD_PARTY_INCLUDES_START
#include <xxhash.h>
#if ZEN_PLATFORM_WINDOWS
# include <zencore/windows.h>
+#else
+# include <fcntl.h>
+# include <sys/stat.h>
+# include <unistd.h>
#endif
ZEN_THIRD_PARTY_INCLUDES_END
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp
index 24b7b4d2c..9743eabf0 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -23,6 +23,7 @@
#include <fmt/format.h>
#include <filesystem>
+#include <unordered_map>
#if ZEN_PLATFORM_WINDOWS
# include <zencore/windows.h>
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
//////////////////////////////////////////////////////////////////////////