summaryrefslogtreecommitdiff
path: root/media/libcubeb
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2021-08-18 17:24:13 -0500
committerJeremy Andrews <athenian200@outlook.com>2021-08-18 17:24:13 -0500
commit9d4f14582bcf9663914ab3ac6bcd56adeb8ce03d (patch)
tree3b6f8f12b986a4a119c511676861c879fd2d5a0b /media/libcubeb
parenta5a14974a1c47e9359927e2c80926f689f7bf9c6 (diff)
downloaduxp-9d4f14582bcf9663914ab3ac6bcd56adeb8ce03d.tar.gz
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.
Diffstat (limited to 'media/libcubeb')
-rw-r--r--media/libcubeb/src/moz.build8
1 files changed, 7 insertions, 1 deletions
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',