dougm       01/12/17 16:37:01

  Modified:    xs/APR/PerlIO apr_perlio.c
  Log:
  allow to compile with older bleedperls
  
  Revision  Changes    Path
  1.3       +9 -2      modperl-2.0/xs/APR/PerlIO/apr_perlio.c
  
  Index: apr_perlio.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/APR/PerlIO/apr_perlio.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- apr_perlio.c      2001/12/17 16:55:46     1.2
  +++ apr_perlio.c      2001/12/18 00:37:01     1.3
  @@ -12,7 +12,7 @@
    * PERLIO_LAYERS is available in 5.7.1
    */
   
  -#ifdef PERLIO_LAYERS /* 5.7.2+ */
  +#if defined(PERLIO_LAYERS) && defined(PERLIO_K_MULTIARG) /* 5.7.2+ */
   
   /**********************************************************************
    * The PerlIO APR layer.
  @@ -377,7 +377,7 @@
                                        type);
   }
   
  -#else /* NOT PERLIO_LAYERS (5.6.1) */
  +#elif !defined(PERLIO_LAYERS) /* NOT PERLIO_LAYERS (5.6.1) */
   
   FILE *apr_perlio_apr_file_to_FILE(pTHX_ apr_file_t *file, int type)
   {
  @@ -445,6 +445,13 @@
   void apr_perlio_init(pTHX)
   {
       APR_REGISTER_OPTIONAL_FN(apr_perlio_apr_file_to_glob);
  +}
  +
  +#else
  +
  +void apr_perlio_init(pTHX)
  +{
  +    Perl_croak(aTHX_ "APR::PerlIO not usable with this version of Perl");
   }
   
   #endif /* PERLIO_LAYERS */
  
  
  


Reply via email to