From: Tobias Brunner Date: Thu, 29 Apr 2010 12:44:31 +0000 (+0200) Subject: We have to rename thread_create on Mac OS X because it conflicts with a syscall. X-Git-Tag: 4.4.0~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=726c0ae9d3d0b0784c64687913001c69670084de;p=thirdparty%2Fstrongswan.git We have to rename thread_create on Mac OS X because it conflicts with a syscall. --- diff --git a/src/libstrongswan/threading/thread.h b/src/libstrongswan/threading/thread.h index 6bf8fac795..31b9e1b3a4 100644 --- a/src/libstrongswan/threading/thread.h +++ b/src/libstrongswan/threading/thread.h @@ -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).