浏览代码

Undo changes to common.cpp and move the include of sys/wait.h to gb.h

Ronald1985 3 年之前
父节点
当前提交
1829aa1638
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 0 5
      src/common.cpp
  2. 4 0
      src/gb/gb.h

+ 0 - 5
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)

+ 4 - 0
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__)