From 65c1a6f8d7210639cbdc1565ccee4758f45dfc45 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Nov 2022 13:02:32 +0000 Subject: gentoo auto-resync : 20:11:2022 - 13:02:32 --- .../files/virtualbox-7.0.4-fix-compilation.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app-emulation/virtualbox/files/virtualbox-7.0.4-fix-compilation.patch (limited to 'app-emulation/virtualbox/files') diff --git a/app-emulation/virtualbox/files/virtualbox-7.0.4-fix-compilation.patch b/app-emulation/virtualbox/files/virtualbox-7.0.4-fix-compilation.patch new file mode 100644 index 000000000000..4452d22fdfd2 --- /dev/null +++ b/app-emulation/virtualbox/files/virtualbox-7.0.4-fix-compilation.patch @@ -0,0 +1,26 @@ +Fix compilation if VBOX_WITH_AUDIO_OSS is defined while VBOX_WITH_AUDIO_PULSE and VBOX_WITH_AUDIO_ALSA are not + +--- a/src/VBox/Main/xml/Settings.cpp ++++ b/src/VBox/Main/xml/Settings.cpp +@@ -8931,6 +8931,9 @@ + RTCLock lock(s_mtx); + if (s_enmLinuxDriver == AudioDriverType_Null) + { ++# ifdef VBOX_WITH_AUDIO_OSS ++ s_enmLinuxDriver = AudioDriverType_OSS; ++# endif /* VBOX_WITH_AUDIO_OSS */ + # ifdef VBOX_WITH_AUDIO_PULSE + /* Check for the pulse library & that the pulse audio daemon is running. */ + if (RTProcIsRunningByName("pulseaudio") && +@@ -8943,10 +8946,7 @@ + if (RTLdrIsLoadable("libasound.so.2")) + s_enmLinuxDriver = AudioDriverType_ALSA; + # endif /* VBOX_WITH_AUDIO_ALSA */ +-# ifdef VBOX_WITH_AUDIO_OSS +- else +- s_enmLinuxDriver = AudioDriverType_OSS; +-# endif /* VBOX_WITH_AUDIO_OSS */ ++ ; + } + return s_enmLinuxDriver; + -- cgit v1.2.3