From 7158c39d45c89dc53dfcb4615aa4d12d49e12424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20=C5=A0vagelj?= Date: Fri, 8 Nov 2024 11:27:40 +0100 Subject: [PATCH] Add math.h include to Vc/scalar/math.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes build on OpenBSD Signed-off-by: Tin Å vagelj --- 3rdparty/Vc/Vc/scalar/math.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/3rdparty/Vc/Vc/scalar/math.h b/3rdparty/Vc/Vc/scalar/math.h index 469a35f81..6e1a12c83 100644 --- a/3rdparty/Vc/Vc/scalar/math.h +++ b/3rdparty/Vc/Vc/scalar/math.h @@ -31,6 +31,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include "macros.h" +// PATCH(Caellian): Fix OpenBSD build +#ifdef __unix__ +#include +#endif + namespace Vc_VERSIONED_NAMESPACE { // copysign {{{1