With perl-5.8 on Win32 and mod_perl-1.27, I get an error
in compiling src/modules/perl/Constants.c about errno
being undeclared. The attached diff allows things
to build and all tests pass. I also tested it with
perl-5.6.1.

best regards,
randy
Index: src/modules/perl/apache_inc.h
===================================================================
RCS file: /home/cvspublic/modperl/src/modules/perl/apache_inc.h,v
retrieving revision 1.5
diff -u -r1.5 apache_inc.h
--- src/modules/perl/apache_inc.h       12 Jun 2001 20:45:38 -0000      1.5
+++ src/modules/perl/apache_inc.h       16 Jun 2002 05:30:44 -0000
@@ -73,7 +73,7 @@
 #define apache_isnan isnan
 #undef isnan
 #endif
-
+
 #ifdef PERL_IS_5_6
 
 #ifdef opendir
@@ -96,9 +96,11 @@
 #undef crypt
 #endif
 
+#if PERL_VERSION == 6
 #ifdef errno
 #define apache_errno errno
 #undef errno
+#endif
 #endif
 
 #endif /* endif PERL_IS_56 */ 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to