From 4ae48e10e57dbc91f28dc3b804462e90dec063d0 Mon Sep 17 00:00:00 2001 From: hubslave <29800872+hubslave@users.noreply.github.com> Date: Mon, 26 Feb 2018 00:07:05 +0200 Subject: [PATCH] Include for byte swap macros on OpenBSD There is code below that assumes the presence of those macros (by #undef'ing them), but none of the included headers provided them. This fixes a build failure on OpenBSD where the undef'd macros _do_ get picked up later on in a compilation unit (through which include, I don't know), and thus shadow the Common::swap* functions. --- Source/Core/Common/Swap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Common/Swap.h b/Source/Core/Common/Swap.h index 6274ce19cc..c5b143dbcb 100644 --- a/Source/Core/Common/Swap.h +++ b/Source/Core/Common/Swap.h @@ -13,6 +13,8 @@ #include #elif defined(__FreeBSD__) #include +#elif defined(__OpenBSD__) +#include #endif #include "Common/CommonTypes.h"