summaryrefslogtreecommitdiff
path: root/src/libstrongswan/threading/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/threading/semaphore.h')
-rw-r--r--src/libstrongswan/threading/semaphore.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/threading/semaphore.h b/src/libstrongswan/threading/semaphore.h
index cdb0a6f19..34d814971 100644
--- a/src/libstrongswan/threading/semaphore.h
+++ b/src/libstrongswan/threading/semaphore.h
@@ -21,6 +21,11 @@
#ifndef 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;
/**