mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:09:16 +02:00
* use same code path for iphonesim as for darwin (should fix mantis #21190)
git-svn-id: trunk@20374 -
This commit is contained in:
parent
bacdd8be81
commit
cc736fe115
@ -34,11 +34,11 @@
|
|||||||
|
|
||||||
{ Darwin doesn't support nameless semaphores in at least }
|
{ Darwin doesn't support nameless semaphores in at least }
|
||||||
{ Mac OS X 10.4.8/Darwin 8.8 }
|
{ Mac OS X 10.4.8/Darwin 8.8 }
|
||||||
{$ifndef darwin}
|
{$if not defined(darwin) and not defined(iphonesim)}
|
||||||
{$define has_sem_init}
|
{$define has_sem_init}
|
||||||
{$define has_sem_getvalue}
|
{$define has_sem_getvalue}
|
||||||
{$else }
|
{$else }
|
||||||
{$ifdef darwin}
|
{$if defined(darwin) or defined(iphonesim)}
|
||||||
{$define has_sem_open}
|
{$define has_sem_open}
|
||||||
{$endif}
|
{$endif}
|
||||||
{$endif}
|
{$endif}
|
||||||
@ -53,7 +53,7 @@ interface
|
|||||||
|
|
||||||
{$ifndef dynpthreads} // If you have problems compiling this on FreeBSD 5.x
|
{$ifndef dynpthreads} // If you have problems compiling this on FreeBSD 5.x
|
||||||
{$linklib c} // try adding -Xf
|
{$linklib c} // try adding -Xf
|
||||||
{$ifndef Darwin}
|
{$if not defined(Darwin) and not defined(iphonesim)}
|
||||||
{$ifndef haiku}
|
{$ifndef haiku}
|
||||||
{$linklib pthread}
|
{$linklib pthread}
|
||||||
{$endif haiku}
|
{$endif haiku}
|
||||||
|
Loading…
Reference in New Issue
Block a user