summaryrefslogtreecommitdiff
path: root/src/common/thread.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-09-08 14:36:20 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-09-11 17:19:14 -0400
commit290afc00d36bbdcdc67d66a4586fd2f188734ad3 (patch)
treed4f9a8eae42dd93ff1e7393ffea03b30faeab125 /src/common/thread.cpp
parentbe4e1929033aff005472163164ab0ccc80d81c19 (diff)
common: Move error handling to error.cpp/h
This allows us to avoid implicitly including <string> every time common_funcs.h is included.
Diffstat (limited to 'src/common/thread.cpp')
-rw-r--r--src/common/thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index d2c1ac60d..946a1114d 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -2,7 +2,9 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-#include "common/common_funcs.h"
+#include <string>
+
+#include "common/error.h"
#include "common/logging/log.h"
#include "common/thread.h"
#ifdef __APPLE__
@@ -21,8 +23,6 @@
#include <unistd.h>
#endif
-#include <string>
-
#ifdef __FreeBSD__
#define cpu_set_t cpuset_t
#endif