We have to rename thread_create on Mac OS X because it conflicts with a syscall.

This commit is contained in:
Tobias Brunner
2010-04-29 14:52:20 +02:00
parent 1c31d34ed5
commit 726c0ae9d3
+6
View File
@@ -24,6 +24,12 @@
typedef struct thread_t thread_t;
#ifdef __APPLE__
/* thread_create is a syscall used to create Mach kernel threads and although
* there are no errors or warnings during compilation or linkage the dynamic
* linker does not use our implementation, therefore we rename it here
*/
#define thread_create(main, arg) strongswan_thread_create(main, arg)
/* on Mac OS X 10.5 several system calls we use are no cancellation points.
* fortunately, select isn't one of them, so we wrap some of the others with
* calls to select(2).