From b4bf87725e7eafa9f39ab6b6680e481a8a398aab Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 1 Feb 2025 11:27:03 +0100 Subject: [PATCH] VST3 SDK update for NetBSD (#9886) --- libs/vst3/pluginterfaces/base/fplatform.h | 2 +- tools/vst3-patches/bsd-support.diff | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tools/vst3-patches/bsd-support.diff diff --git a/libs/vst3/pluginterfaces/base/fplatform.h b/libs/vst3/pluginterfaces/base/fplatform.h index eb258a5e54..40c0b0a75a 100644 --- a/libs/vst3/pluginterfaces/base/fplatform.h +++ b/libs/vst3/pluginterfaces/base/fplatform.h @@ -86,7 +86,7 @@ //----------------------------------------------------------------------------- // LINUX //----------------------------------------------------------------------------- -#elif __gnu_linux__ || __linux__ +#elif __gnu_linux__ || __linux__ || __FreeBSD__ || __NetBSD__ || __OpenBSD__ #define SMTG_OS_LINUX 1 #define SMTG_OS_MACOS 0 #define SMTG_OS_WINDOWS 0 diff --git a/tools/vst3-patches/bsd-support.diff b/tools/vst3-patches/bsd-support.diff new file mode 100644 index 0000000000..2a3f514f12 --- /dev/null +++ b/tools/vst3-patches/bsd-support.diff @@ -0,0 +1,15 @@ +$NetBSD: patch-libs_vst3_pluginterfaces_base_fplatform.h,v 1.2 2025/01/31 17:15:11 wiz Exp $ + +Fix build on *BSD. + +--- libs/vst3/pluginterfaces/base/fplatform.h.orig 2024-02-04 02:22:43.806501710 +0000 ++++ libs/vst3/pluginterfaces/base/fplatform.h +@@ -86,7 +86,7 @@ + //----------------------------------------------------------------------------- + // LINUX + //----------------------------------------------------------------------------- +-#elif __gnu_linux__ || __linux__ ++#elif __gnu_linux__ || __linux__ || __FreeBSD__ || __NetBSD__ || __OpenBSD__ + #define SMTG_OS_LINUX 1 + #define SMTG_OS_MACOS 0 + #define SMTG_OS_WINDOWS 0