diff options
author | coral <coral@moonlight.crystalflame.net> | 2001-07-12 09:16:50 -0700 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-07-12 23:23:39 +0000 |
commit | 144e72cbb0a87482126af99f2a57642ab7151c4b (patch) | |
tree | f58d2203145d9f120fec9b0e22b8f5fffab1c167 /thread.h | |
parent | d6483fcc6b9636fb9ad881a6e0c80aace64f8f99 (diff) | |
download | perl-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.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |