2
0
Эх сурвалжийг харах

Added missing #includes on OpenBSD

Ronald1985 3 жил өмнө
parent
commit
89222a0ab2
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      src/common.cpp

+ 5 - 0
src/common.cpp

@@ -25,6 +25,11 @@
 #include <psapi.h>
 #include <psapi.h>
 #endif
 #endif
 
 
+#if defined(GB_SYSTEM_OPENBSD)
+#include <sys/resource.h>
+#include <sys/wait.h>
+#endif
+
 #include <math.h>
 #include <math.h>
 #include <string.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)
 #include <atomic> // Because I wanted the C++11 memory order semantics, of which gb.h does not offer (because it was a C89 library)