From 9d4f14582bcf9663914ab3ac6bcd56adeb8ce03d Mon Sep 17 00:00:00 2001 From: Jeremy Andrews Date: Wed, 18 Aug 2021 17:24:13 -0500 Subject: Issue #1806 - Follow-up: New libcubeb uses incorrect audio backend for Oracle Solaris. Mozilla picked up a change to libcubeb moz.build file from the FreeBSD project. Using OSS directly works fine in Illumos, but Oracle Solaris still has to use a Sun-specific API for sound to work, even though it also uses OSS under the hood. No code changes are needed here, the build configuration is just not what Solaris needs even though it's fine for Illumos. The Sun-specific API works for both, though, and should thus be preferred. --- media/libcubeb/src/moz.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'media/libcubeb/src/moz.build') diff --git a/media/libcubeb/src/moz.build b/media/libcubeb/src/moz.build index a67098d8dd..bba0d5f8b5 100644 --- a/media/libcubeb/src/moz.build +++ b/media/libcubeb/src/moz.build @@ -36,12 +36,18 @@ if CONFIG['MOZ_JACK']: ] DEFINES['USE_JACK'] = True -if CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD', 'SunOS'): +if CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD'): SOURCES += [ 'cubeb_oss.c', ] DEFINES['USE_OSS'] = True +if CONFIG['OS_ARCH'] == 'SunOS': + SOURCES += [ + 'cubeb_sun.c', + ] + DEFINES['USE_SUN'] = True + if CONFIG['OS_TARGET'] == 'WINNT': SOURCES += [ 'cubeb_resampler.cpp', -- cgit v1.2.3