diff --git a/audio/lmms/Makefile b/audio/lmms/Makefile
index 8ba7c4a503ca..8aa7c3b73f57 100644
--- a/audio/lmms/Makefile
+++ b/audio/lmms/Makefile
@@ -3,7 +3,7 @@
 PORTNAME=	lmms
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.2.2
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH=	2
 CATEGORIES=	audio
 
diff --git a/audio/lmms/files/patch-plugins_carlabase_carla.h b/audio/lmms/files/patch-plugins_carlabase_carla.h
new file mode 100644
index 000000000000..567a2415563b
--- /dev/null
+++ b/audio/lmms/files/patch-plugins_carlabase_carla.h
@@ -0,0 +1,15 @@
+--- plugins/carlabase/carla.h.orig	2022-04-24 08:49:10 UTC
++++ plugins/carlabase/carla.h
+@@ -34,10 +34,10 @@
+     #include "CarlaBackend.h"
+     #include "CarlaNative.h"
+     #include "CarlaUtils.h"
+-    CARLA_EXPORT
++    CARLA_PLUGIN_EXPORT
+     const NativePluginDescriptor* carla_get_native_patchbay_plugin();
+ 
+-    CARLA_EXPORT
++    CARLA_PLUGIN_EXPORT
+     const NativePluginDescriptor* carla_get_native_rack_plugin();
+ #endif
+