In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/0c2c3d000e799a35bdc2bdd24feaf77cf854a2dd?hp=f660499c5fbbc20023791625e914d7662b557e85>

- Log -----------------------------------------------------------------
commit 0c2c3d000e799a35bdc2bdd24feaf77cf854a2dd
Author: Craig A. Berry <[email protected]>
Date:   Thu Jan 1 09:02:37 2015 -0600

    Fix PerlIO vtables on VMS.
    
    f0e5c859d36afe5 broke the build because it caused the PerlIO_funcs
    declarations to be const in perlio.h and EXTPERLIO in perliol.h
    and on VMS, EXTPERLIO was EXTCONST which is globalref.  The compiler
    considers globalref and const to be incompatible.
    
    As a workaround, make EXTPERLIO "extern const" on VMS only.  The
    whole custom global data model on VMS probably needs a rethink,
    but this gets the build working again.
-----------------------------------------------------------------------

Summary of changes:
 perliol.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/perliol.h b/perliol.h
index 87b1fc7..9852026 100644
--- a/perliol.h
+++ b/perliol.h
@@ -109,7 +109,11 @@ struct _PerlIO {
 /* Data exports - EXTCONST rather than extern is needed for Cygwin */
 #undef EXTPERLIO 
 #ifdef PERLIO_FUNCS_CONST
-#define EXTPERLIO EXTCONST
+#ifdef __VMS
+#  define EXTPERLIO extern const
+#else
+#  define EXTPERLIO EXTCONST
+#endif
 #else
 #define EXTPERLIO EXT
 #endif

--
Perl5 Master Repository

Reply via email to