nixpkgs/pkgs/servers/pulseaudio/0006-Fix-libpulsecommon-sources-on-darwin.patch
2022-08-02 18:39:28 +02:00

19 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',