depot/third_party/nixpkgs/pkgs/servers/pulseaudio/0006-Fix-libpulsecommon-sources-on-darwin.patch
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

18 lines
532 B
Diff

diff --git a/src/meson.build b/src/meson.build
index 9efb561d8..d181f4867 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -179,6 +179,13 @@ if host_machine.system() == 'windows'
'pulsecore/semaphore-win32.c',
'pulsecore/thread-win32.c',
]
+elif host_machine.system() == 'darwin'
+ libpulsecommon_sources += [
+ 'pulsecore/mutex-posix.c',
+ 'pulsecore/poll-posix.c',
+ 'pulsecore/semaphore-osx.c',
+ 'pulsecore/thread-posix.c'
+ ]
else
libpulsecommon_sources += [
'pulsecore/mutex-posix.c',