summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/template/darwin3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/template/darwin b/src/template/darwin
index 4fdbea27bf..cd60b83fe0 100644
--- a/src/template/darwin
+++ b/src/template/darwin
@@ -7,6 +7,9 @@ USE_NAMED_POSIX_SEMAPHORES=1
THREAD_SUPPORT=yes
# verified Mac OS X 10.3.3, Darwin Kernel Version 7.3.0, 2004-04-07
+THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
+THREAD_LIBS="-lpthread"
+
STRERROR_THREADSAFE=yes
GETPWUID_THREADSAFE=yes
GETHOSTBYNAME_THREADSAFE=yes