You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by do...@apache.org on 2002/05/30 03:23:28 UTC

cvs commit: modperl-2.0/src/modules/perl modperl_perl_includes.h

dougm       02/05/29 18:23:28

  Modified:    src/modules/perl modperl_perl_includes.h
  Log:
  define environ on darwin if needed
  
  Revision  Changes    Path
  1.13      +5 -0      modperl-2.0/src/modules/perl/modperl_perl_includes.h
  
  Index: modperl_perl_includes.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_perl_includes.h,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- modperl_perl_includes.h	23 May 2002 22:40:47 -0000	1.12
  +++ modperl_perl_includes.h	30 May 2002 01:23:28 -0000	1.13
  @@ -63,4 +63,9 @@
   #   define PERL_MAGIC_tied 'P'
   #endif
   
  +#if defined(__APPLE__) && !defined(PERL_CORE) && !defined(environ)
  +#   include <crt_externs.h>
  +#   define environ (*_NSGetEnviron())
  +#endif
  +
   #endif /* MODPERL_PERL_INCLUDES_H */