From: coral Date: Thu, 12 Jul 2001 16:16:50 +0000 (-0700) Subject: pthread_atfork on FreeBSD - Part 1: #ifdef HAS_PTHREAD_ATFORK X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=144e72cbb0a87482126af99f2a57642ab7151c4b;p=p5sagit%2Fp5-mst-13.2.git pthread_atfork on FreeBSD - Part 1: #ifdef HAS_PTHREAD_ATFORK Message-Id: <200107122316.f6CNGoq09171@moonlight.crystalflame.net> p4raw-id: //depot/perl@11336 --- diff --git a/thread.h b/thread.h index c76534f..8f475a0 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