mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-27 00:00:29 -05:00
semaphore: similar to thread_create(), semaphore_create() is used by Mach
The compiler spits no warning, but the wrong symbol is used when calling semaphore_create() from strongSwan. Override the name with a #define to force the use of our semaphore_create().
This commit is contained in:
parent
0c586c0099
commit
b0ccd14f2a
@ -21,6 +21,11 @@
|
|||||||
#ifndef THREADING_SEMAPHORE_H_
|
#ifndef THREADING_SEMAPHORE_H_
|
||||||
#define THREADING_SEMAPHORE_H_
|
#define THREADING_SEMAPHORE_H_
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
/* Mach uses a semaphore_create() call, use a different name for ours */
|
||||||
|
#define semaphore_create(x) strongswan_semaphore_create(x)
|
||||||
|
#endif /* __APPLE__ */
|
||||||
|
|
||||||
typedef struct semaphore_t semaphore_t;
|
typedef struct semaphore_t semaphore_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user