aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald1985 <ronald1985@protonmail.com>2022-07-22 23:08:46 +0100
committerRonald1985 <ronald1985@protonmail.com>2022-07-22 23:08:46 +0100
commit1829aa1638362159fc54ea031a6aec760d0ff9ee (patch)
tree773b395023c9b4dbebb221f5ed2be66b3b978281
parent4cb4173ced6c640d9d23af142582c3d8dffa3dd5 (diff)
Undo changes to common.cpp and move the include of sys/wait.h to gb.h
-rw-r--r--src/common.cpp5
-rw-r--r--src/gb/gb.h4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 2f7ab7916..77caddfe8 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -25,11 +25,6 @@
#include <psapi.h>
#endif
-#if defined(GB_SYSTEM_OPENBSD)
-#include <sys/resource.h>
-#include <sys/wait.h>
-#endif
-
#include <math.h>
#include <string.h>
#include <atomic> // Because I wanted the C++11 memory order semantics, of which gb.h does not offer (because it was a C89 library)
diff --git a/src/gb/gb.h b/src/gb/gb.h
index 48d3c9aec..d09c7618b 100644
--- a/src/gb/gb.h
+++ b/src/gb/gb.h
@@ -90,6 +90,10 @@ extern "C" {
#error This operating system is not supported
#endif
+#if defined(GB_SYSTEM_OPENBSD)
+#include <sys/wait.h>
+#endif
+
#if defined(_MSC_VER)
#define GB_COMPILER_MSVC 1
#elif defined(__GNUC__)