X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=thread.h;h=fae53f16171e5a11894f8d8b4a16388cfd1a12c4;hb=84e09d5e9b0e8f355853f7c768e322224fb09c76;hp=4744aa0bdd1d145e544002900f4d8f68a09c4b79;hpb=026b9da668ef80098c6605ecf2edb65546562c4e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/thread.h b/thread.h index 4744aa0..fae53f1 100644 --- a/thread.h +++ b/thread.h @@ -7,6 +7,9 @@ #ifdef WIN32 # include #else +#ifdef NETWARE +# include +#else # ifdef OLD_PTHREADS_API /* Here be dragons. */ # define DETACH(t) \ STMT_START { \ @@ -54,6 +57,7 @@ # define pthread_mutexattr_default NULL # define pthread_condattr_default NULL # endif +#endif /* NETWARE */ #endif #ifndef PTHREAD_CREATE @@ -298,6 +302,16 @@ } STMT_END #endif +#ifndef PTHREAD_ATFORK +# ifdef HAS_PTHREAD_ATFORK +# define PTHREAD_ATFORK(prepare,parent,child) \ + pthread_atfork(prepare,parent,child) +# else +# define PTHREAD_ATFORK(prepare,parent,child) \ + NOOP +# endif +#endif + #ifndef THREAD_RET_TYPE # define THREAD_RET_TYPE void * # define THREAD_RET_CAST(p) ((void *)(p))