diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2022-07-24 22:28:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-24 22:28:25 +0100 |
| commit | d30e59f539e651af079668b15b2f20349cad21f1 (patch) | |
| tree | e9883abf75c3138bb04392d0d19ba236f20f841a | |
| parent | a3afe617c218736563723fd1ab343f403bdd33f0 (diff) | |
| parent | 1829aa1638362159fc54ea031a6aec760d0ff9ee (diff) | |
Merge pull request #1844 from Ronaldr1985/fix-odin-on-openbsd
Added missing #includes on OpenBSD
| -rwxr-xr-x | build_odin.sh | 2 | ||||
| -rw-r--r-- | src/gb/gb.h | 4 |
2 files changed, 5 insertions, 1 deletions
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) 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__) |