From 1829aa1638362159fc54ea031a6aec760d0ff9ee Mon Sep 17 00:00:00 2001 From: Ronald1985 Date: Fri, 22 Jul 2022 23:08:46 +0100 Subject: [PATCH] Undo changes to common.cpp and move the include of sys/wait.h to gb.h --- src/common.cpp | 5 ----- src/gb/gb.h | 4 ++++ 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 #endif -#if defined(GB_SYSTEM_OPENBSD) -#include -#include -#endif - #include #include #include // 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 +#endif + #if defined(_MSC_VER) #define GB_COMPILER_MSVC 1 #elif defined(__GNUC__)