summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/alignment.h1
-rw-r--r--src/common/atomic_ops.h2
-rw-r--r--src/common/fs/file.cpp1
-rw-r--r--src/common/fs/fs_util.cpp2
-rw-r--r--src/common/host_memory.cpp1
-rw-r--r--src/common/thread.cpp1
-rw-r--r--src/common/uint128.h1
7 files changed, 9 insertions, 0 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h
index e4653bf35..8570c7d3c 100644
--- a/src/common/alignment.h
+++ b/src/common/alignment.h
@@ -3,6 +3,7 @@
#pragma once
#include <cstddef>
+#include <new>
#include <type_traits>
namespace Common {
diff --git a/src/common/atomic_ops.h b/src/common/atomic_ops.h
index c488489ea..b94d73c7a 100644
--- a/src/common/atomic_ops.h
+++ b/src/common/atomic_ops.h
@@ -8,6 +8,8 @@
#if _MSC_VER
#include <intrin.h>
+#else
+#include <cstring>
#endif
namespace Common {
diff --git a/src/common/fs/file.cpp b/src/common/fs/file.cpp
index b89e785c2..5d71275ef 100644
--- a/src/common/fs/file.cpp
+++ b/src/common/fs/file.cpp
@@ -8,6 +8,7 @@
#ifdef _WIN32
#include <io.h>
+#include <share.h>
#else
#include <unistd.h>
#endif
diff --git a/src/common/fs/fs_util.cpp b/src/common/fs/fs_util.cpp
index 1f47c2310..0068112e6 100644
--- a/src/common/fs/fs_util.cpp
+++ b/src/common/fs/fs_util.cpp
@@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <algorithm>
+
#include "common/fs/fs_util.h"
namespace Common::FS {
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 229fbe91e..e829af1ac 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -18,6 +18,7 @@
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
+#include "common/scope_exit.h"
#endif // ^^^ Linux ^^^
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 91c8a8e13..946a1114d 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -4,6 +4,7 @@
#include <string>
+#include "common/error.h"
#include "common/logging/log.h"
#include "common/thread.h"
#ifdef __APPLE__
diff --git a/src/common/uint128.h b/src/common/uint128.h
index 1ed5d6507..ad1b90414 100644
--- a/src/common/uint128.h
+++ b/src/common/uint128.h
@@ -12,6 +12,7 @@
#pragma intrinsic(_umul128)
#pragma intrinsic(_udiv128)
#else
+#include <cstring>
#include <x86intrin.h>
#endif