diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-04-29 14:44:31 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-04-29 14:52:20 +0200 |
commit | 726c0ae9d3d0b0784c64687913001c69670084de (patch) | |
tree | 3c22b01d563b5c8894dd35248cc0063f6cec6727 | |
parent | 1c31d34ed5d31db8a0472fec5275155e21117812 (diff) | |
download | strongswan-726c0ae9d3d0b0784c64687913001c69670084de.tar.bz2 strongswan-726c0ae9d3d0b0784c64687913001c69670084de.tar.xz |
We have to rename thread_create on Mac OS X because it conflicts with a syscall.
-rw-r--r-- | src/libstrongswan/threading/thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/threading/thread.h b/src/libstrongswan/threading/thread.h index 6bf8fac79..31b9e1b3a 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). |