summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-10-22 07:47:10 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1998-10-22 07:47:10 +0000
commit6dc3770de71571cb8748c31b5cb908c0da56924c (patch)
treef71897b842e8ac86d974edb1748c0f6757d1aff4 /thread.h
parent31dfa2f67cc0c743af923d5a6fe0b0f44ad42013 (diff)
downloadperl-6dc3770de71571cb8748c31b5cb908c0da56924c.tar.gz
DJGPP feedback for #2028.
p4raw-id: //depot/cfgperl@2033
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/thread.h b/thread.h
index 58e70fb6b2..4d2c7dd43c 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