summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorcoral <coral@moonlight.crystalflame.net>2001-07-12 09:16:50 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-12 23:23:39 +0000
commit144e72cbb0a87482126af99f2a57642ab7151c4b (patch)
treef58d2203145d9f120fec9b0e22b8f5fffab1c167 /thread.h
parentd6483fcc6b9636fb9ad881a6e0c80aace64f8f99 (diff)
downloadperl-144e72cbb0a87482126af99f2a57642ab7151c4b.tar.gz
pthread_atfork on FreeBSD - Part 1: #ifdef HAS_PTHREAD_ATFORK
Message-Id: <200107122316.f6CNGoq09171@moonlight.crystalflame.net> p4raw-id: //depot/perl@11336
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/thread.h b/thread.h
index c76534fe3e..8f475a0b7c 100644
--- a/thread.h
+++ b/thread.h
@@ -306,8 +306,12 @@ void Perl_atfork_lock(void);
void Perl_atfork_unlock(void);
#ifndef PTHREAD_ATFORK
-# define PTHREAD_ATFORK(prepare,parent,child) \
- pthread_atfork(prepare,parent,child)
+# ifdef HAS_PTHREAD_ATFORK
+# define PTHREAD_ATFORK(prepare,parent,child) \
+ pthread_atfork(prepare,parent,child)
+# else
+# define PTHREAD_ATFORK(prepare,parent,child)
+# endif
#endif
#ifndef THREAD_RET_TYPE