From 89222a0ab22bbe8067111405caf4f2b703f44732 Mon Sep 17 00:00:00 2001 From: Ronald1985 Date: Tue, 14 Jun 2022 09:55:06 +0100 Subject: [PATCH 1/3] Added missing #includes on OpenBSD --- src/common.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common.cpp b/src/common.cpp index 77caddfe8..2f7ab7916 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -25,6 +25,11 @@ #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) From 4cb4173ced6c640d9d23af142582c3d8dffa3dd5 Mon Sep 17 00:00:00 2001 From: Ronald1985 Date: Thu, 16 Jun 2022 08:55:02 +0100 Subject: [PATCH 2/3] Updated shabang in build_odin.sh so it runs on OpenBSD This change doesn't break compatibility on Linux or Darwin --- build_odin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_odin.sh b/build_odin.sh index aef3f2836..b00d33323 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu GIT_SHA=$(git rev-parse --short HEAD) From 1829aa1638362159fc54ea031a6aec760d0ff9ee Mon Sep 17 00:00:00 2001 From: Ronald1985 Date: Fri, 22 Jul 2022 23:08:46 +0100 Subject: [PATCH 3/3] 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__)