#endif /* JOIN */
#ifndef PERL_GET_CONTEXT
-# define PERL_GET_CONTEXT pthread_getspecific(PL_thr_key)
+/* True for Tru64 version 4.0 and up as well */
+# if defined(__ALPHA) && (__VMS_VER >= 70000000)
+# define PERL_GET_CONTEXT pthread_unchecked_getspecific_np(PL_thr_key)
+# else
+# define PERL_GET_CONTEXT pthread_getspecific(PL_thr_key)
+# endif
#endif
#ifndef PERL_SET_CONTEXT
Perl_croak_nocontext("panic: pthread_getspecific");
return (void*)t;
# else
-# ifdef I_MACH_CTHREADS
- return (void*)cthread_data(cthread_self());
-# else
- return (void*)pthread_getspecific(PL_thr_key);
+# ifdef I_MACH_CTHREADS
+ return (void*)cthread_data(cthread_self());
+# else
+# if defined(__ALPHA) && (__VMS_VER >= 70000000)
+ return (void*)pthread_unchecked_getspecific_np(PL_thr_key);
+# else
+ return (void*)pthread_getspecific(PL_thr_key);
+# endif
# endif
# endif
#else