From: Jarkko Hietaniemi Date: Thu, 22 Oct 1998 07:47:10 +0000 (+0000) Subject: DJGPP feedback for #2028. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6dc3770de71571cb8748c31b5cb908c0da56924c;p=p5sagit%2Fp5-mst-13.2.git DJGPP feedback for #2028. p4raw-id: //depot/cfgperl@2033 --- diff --git a/thread.h b/thread.h index 58e70fb..4d2c7dd 100644 --- a/thread.h +++ b/thread.h @@ -17,7 +17,7 @@ struct perl_thread *getTHR _((void)); # ifdef DJGPP # define pthread_addr_t any_t # define NEED_PTHREAD_INIT -# define PTHREAD_CREATE_JOINABLE (&err) +# define PTHREAD_CREATE_JOINABLE (1) # endif # ifdef __OPEN_VM # define pthread_addr_t void * @@ -25,6 +25,7 @@ struct perl_thread *getTHR _((void)); # ifdef VMS # define pthread_attr_init(a) pthread_attr_create(a) # define PTHREAD_ATTR_SETDETACHSTATE(a,s) pthread_setdetach_np(a,s) +# define PTHREAD_CREATE(t,a,s,d) pthread_create(t,a,s,d) # define pthread_key_create(k,d) pthread_keycreate(k,(pthread_destructor_t)(d)) # define pthread_mutexattr_init(a) pthread_mutexattr_create(a) # define pthread_mutexattr_settype(a,t) pthread_mutexattr_setkind_np(a,t) @@ -33,9 +34,6 @@ struct perl_thread *getTHR _((void)); # define PTHREAD_ATTR_SETDETACHSTATE(a,s) pthread_attr_setdetachstate(a,&(s)) # define YIELD pthread_yield(NULL) # endif -# if defined(DJGPP) || defined(VMS) -# define PTHREAD_CREATE(t,a,s,d) pthread_create(t,a,s,d) -# endif # endif # ifndef VMS # define pthread_mutexattr_default NULL