develooper Front page | perl.sdl.devel | Postings from January 2012

Re: [SDL] SDL 1.2 and satellite libs PRE-RELEASE

Thread Previous
From:
Tobias Leich
Date:
January 9, 2012 18:26
Subject:
Re: [SDL] SDL 1.2 and satellite libs PRE-RELEASE
Message ID:
4F0BA1AC.5000404@froggs.de
I've attached the semaphore.h files of my systems, and the libSDL source
file that uses sem_timedwait.

Looks like _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 would be
the right switch according to http://linux.die.net/man/3/sem_timedwait .

Should it use the same "../generic/SDL_syssem.c" like it does for macosx
when _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 isnt true?

Because You cant just replace SDL_SemWaitTimeout(), the structure of
SDL_semaphore differ.
> On Monday, January 09, 2012 at 12:17 PM, Tobias Leich wrote:
>
>> I get the same issue on my NetBSD 5.1.3 i386. Are all BSD's affected?
>> Can somebody approve?
> As I understand it, sem_timedwait isn't a part of BSD, so you're not likely to 
> find it on any *BSD or Mac OS X or Solaris (though newer versions may have it). 
> There ought to be a #define around code which uses it.
>
> -- c
>



Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About