aboutsummaryrefslogtreecommitdiff
path: root/src/common/Threading
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-02-11 14:33:35 +0100
committerShauren <shauren.trinity@gmail.com>2022-02-11 14:33:35 +0100
commitcbcd149ce508dfe8ff508391f9e32b7dc2cfbe5c (patch)
treea0b8f575b1fba587e90781e43b4f94f4bbc7a812 /src/common/Threading
parent5b02c53fc568edd96ab557a8dd4d0195bcc9ec8c (diff)
Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers
Diffstat (limited to 'src/common/Threading')
-rw-r--r--src/common/Threading/ProcessPriority.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Threading/ProcessPriority.cpp b/src/common/Threading/ProcessPriority.cpp
index 3428a56258c..aafc1c49b04 100644
--- a/src/common/Threading/ProcessPriority.cpp
+++ b/src/common/Threading/ProcessPriority.cpp
@@ -21,6 +21,7 @@
#ifdef _WIN32 // Windows
#include <Windows.h>
#elif defined(__linux__)
+#include <cstring>
#include <sched.h>
#include <sys/resource.h>
#define PROCESS_HIGH_PRIORITY -15 // [-20, 19], default is 0