From 36b910a2538b9c00dec6b85ed4ba4796a9257f25 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 10 May 2021 01:39:33 +0600 Subject: [PATCH] Fix compilation on OpenBSD --- source/build/include/compat.h | 2 +- source/common/engine/printf.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/build/include/compat.h b/source/build/include/compat.h index 930315c4f..8c61fd125 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -52,7 +52,7 @@ ////////// Platform headers ////////// -#if !defined __APPLE__ && (!defined EDUKE32_BSD || !__STDC__) +#if !defined __APPLE__ && (!defined EDUKE32_BSD || !__STDC__) && !defined __OpenBSD__ && !defined __DragonFly__ # include #endif diff --git a/source/common/engine/printf.h b/source/common/engine/printf.h index 3c6164f76..69d3e7d45 100644 --- a/source/common/engine/printf.h +++ b/source/common/engine/printf.h @@ -1,4 +1,5 @@ #pragma once +#include #if defined __GNUC__ || defined __clang__ # define ATTRIBUTE(attrlist) __attribute__(attrlist)