summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/thread.h b/thread.h
index 99269a1f1f..87e897417b 100644
--- a/thread.h
+++ b/thread.h
@@ -250,7 +250,12 @@
#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