diff options
author | Craig A. Berry <craigberry@mac.com> | 2021-02-15 17:53:41 -0600 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2021-02-15 17:53:41 -0600 |
commit | 7430efdb45ffcaa46e8771fff83d0af95c8b2af8 (patch) | |
tree | 869c77ce69b0f998035576a101bec4c941eb8268 /configure.com | |
parent | 397e6c111f3e1ef0f2fb7475e9379dccda9fca6a (diff) | |
download | perl-7430efdb45ffcaa46e8771fff83d0af95c8b2af8.tar.gz |
Hide DECthreads TRY macro
I guess it seemed like a good idea in 1989, but on VMS, the
pthread_exception.h header exposes TRY and some other simple
English words as macros. Luckily there is a way to hide them
(defining _PTHREAD_EXC_INCL_CLEAN) and that's what this commit
does since Perl now also uses TRY without a prefix or other
guard to avoid collisions.
If anyone still needs what DECthreads TRY does, it was always just
an alias for PTHREAD_TRY_NP, which can be used directly.
If anyone is still using Tru64, it very likely needs an equivalent
patch since the headers and compiler and ancient threading
implementation share a common origin.
Diffstat (limited to 'configure.com')
-rw-r--r-- | configure.com | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.com b/configure.com index 77ce7ae086..4b106751df 100644 --- a/configure.com +++ b/configure.com @@ -7275,6 +7275,7 @@ $ IF unlink_all_versions .OR. unlink_all_versions .EQS. "define" THEN - $ IF d_sockaddr_sa_len .EQS. "define" then WC "#define _SOCKADDR_LEN 1" $ IF ccname .EQS. "CXX" then WC "#define NO_ENVIRON_ARRAY" $ IF ccname .EQS. "CXX" then WC "#define VMS" ! only has __VMS by default +$ WC "#define _PTHREAD_EXC_INCL_CLEAN" ! avoid conflict between DECthreads TRY/CATCH and Perl TRY/CATCH $ CLOSE CONFIG $! $ echo4 "Doing variable substitutions on .SH files..." |