git: 238c4ab4b8d0 - main - audio/dexed: fix build when it was broken due to the mb macro conflict

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 02 Oct 2026 00:00:39 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=238c4ab4b8d001e4f1fc0d36af76182620801820

commit 238c4ab4b8d001e4f1fc0d36af76182620801820
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-01 23:39:23 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-02 00:00:20 +0000

    audio/dexed: fix build when it was broken due to the mb macro conflict
---
 ...dules_juce__core_native_juce__BasicNativeHeaders.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/audio/dexed/files/patch-libs_JUCE_modules_juce__core_native_juce__BasicNativeHeaders.h b/audio/dexed/files/patch-libs_JUCE_modules_juce__core_native_juce__BasicNativeHeaders.h
new file mode 100644
index 000000000000..515cedd2b49c
--- /dev/null
+++ b/audio/dexed/files/patch-libs_JUCE_modules_juce__core_native_juce__BasicNativeHeaders.h
@@ -0,0 +1,19 @@
+-- Undefine the "mb" macro leaked by FreeBSD's <sys/user.h> (which pulls in
+-- machine/atomic.h) on arm/aarch64. That macro collides with local
+-- variables/members named "mb" used throughout JUCE.
+-- See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283492
+
+--- libs/JUCE/modules/juce_core/native/juce_BasicNativeHeaders.h.orig	2026-09-30 14:06:43 UTC
++++ libs/JUCE/modules/juce_core/native/juce_BasicNativeHeaders.h
+@@ -248,6 +248,11 @@
+  #include <utime.h>
+  #include <poll.h>
+ 
++ // sys/user.h pulls in machine/atomic.h on FreeBSD/arm, which defines a
++ // function-like macro "mb()" that collides with local variables/members
++ // named "mb" used throughout JUCE, causing build failures.
++ #undef mb
++
+ //==============================================================================
+ #elif JUCE_ANDROID
+  #include <jni.h>