diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1998-10-22 07:47:10 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1998-10-22 07:47:10 +0000 |
commit | 6dc3770de71571cb8748c31b5cb908c0da56924c (patch) | |
tree | f71897b842e8ac86d974edb1748c0f6757d1aff4 /thread.h | |
parent | 31dfa2f67cc0c743af923d5a6fe0b0f44ad42013 (diff) | |
download | perl-6dc3770de71571cb8748c31b5cb908c0da56924c.tar.gz |
DJGPP feedback for #2028.
p4raw-id: //depot/cfgperl@2033
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |