cvsuser     03/10/11 04:08:16

  Modified:    config/auto headers.pl
               languages/imcc imc.h
  Log:
  PARROT_HAS_HEADER_SYSEXITS:
    Probe for header-file <sysexits.h> in config/auto/headers.pl
    and use its result instead of compiler-test in languages/imcc/imc.h
  
  Revision  Changes    Path
  1.9       +1 -1      parrot/config/auto/headers.pl
  
  Index: headers.pl
  ===================================================================
  RCS file: /cvs/public/parrot/config/auto/headers.pl,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -w -r1.8 -r1.9
  --- headers.pl        13 Jul 2003 18:52:36 -0000      1.8
  +++ headers.pl        11 Oct 2003 11:08:13 -0000      1.9
  @@ -28,7 +28,7 @@
       # some headers may not be probed-for by perl 5, or might not be
       # properly reflected in %Config (i_fcntl seems to be wrong on my machine,
       # for instance).
  -    my @extra_headers = qw(malloc.h fcntl.h setjmp.h pthread.h signal.h);
  +    my @extra_headers = qw(malloc.h fcntl.h setjmp.h pthread.h signal.h sysexits.h);
   
       foreach my $header (@extra_headers) {
           my $flag = "i_$header";
  
  
  
  1.45      +2 -2      parrot/languages/imcc/imc.h
  
  Index: imc.h
  ===================================================================
  RCS file: /cvs/public/parrot/languages/imcc/imc.h,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -w -r1.44 -r1.45
  --- imc.h     6 Sep 2003 07:56:52 -0000       1.44
  +++ imc.h     11 Oct 2003 11:08:16 -0000      1.45
  @@ -4,7 +4,7 @@
   #include <stdio.h>
   #include <stdlib.h>
   
  -#ifndef _MSC_VER
  +#ifdef PARROT_HAS_HEADER_SYSEXITS
   #  include <sysexits.h>
   #else
   #  define EX_DATAERR 1
  @@ -13,7 +13,7 @@
   #  define EX_IOERR 1
   #  define EX_USAGE 1
   #  define EX_UNAVAILABLE 1
  -#endif
  +#endif  /* PARROT_HAS_HEADER_SYSEXITS */
   
   #include "parrot/parrot.h"
   
  
  
  

Reply via email to