[pulseaudio-discuss] semaphores macosx, comments please
Mattias.Claesson at se.fujitsu.com
Thu Nov 12 13:50:11 PST 2009
For some reason I don't have the Multiprocessing.h include, maybe I am on a newer version.
XCode Version 3.2.1 (1613) on macos 10.6.
Here is a reference to the same issue as I found.
The code does compile, but it compiles the semaphore-posix.c file, there is just no way that the osx version gets compiled in my source tree.
If I force semaphore-osx.c to be compiled instead of semaphore-posix.c, it is not linking either without adding a library too.
Hey, maybe I did something wrong when retreiving the code?
git fetch git://0pointer.de/pulseaudio.git
Från: pulseaudio-discuss-bounces at mail.0pointer.de [pulseaudio-discuss-bounces at mail.0pointer.de] för Daniel Mack [daniel at caiaq.de]
Skickat: den 12 november 2009 22:21
Till: General PulseAudio Discussion
Ämne: Re: [pulseaudio-discuss] semaphores macosx, comments please
On Thu, Nov 12, 2009 at 07:37:26PM +0100, Claesson Mattias wrote:
> This is what I did for src/pulsecore/semaphore-osx.c
> @@ -21,11 +21,11 @@
> #ifdef HAVE_CONFIG_H
> #include <config.h>
> -#include <Multiprocessing.h>
> +#include <CoreServices/CoreServices.h>
> #include <pulse/xmalloc.h>
> #include <pulsecore/macro.h>
> #include "semaphore.h"
> POSIX unnamed semaphores are not supported under macos x. Other free software use named semaphores (that is supposed to work) to implement also unnamed semaphores.
> sem_open("clever random name") + sem_unlink() instead of sem_init() + sem_close().
> Tried a quick test and it should be possible to get this to work, it all depends on the "random name" used.
Hmm - what exactly is the problem you're seeing? What is the reason for
changing that? Doesn't the current code compile for you?
pulseaudio-discuss mailing list
pulseaudio-discuss at mail.0pointer.de
More information about the pulseaudio-discuss