From: Jarkko Hietaniemi Date: Thu, 5 Jul 2001 13:06:53 +0000 (+0000) Subject: POSIX-BC tweaks from Thomas Dorner. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6f2bd2490575d366d464eccd9039ee1e86088e7f;p=p5sagit%2Fp5-mst-13.2.git POSIX-BC tweaks from Thomas Dorner. p4raw-id: //depot/perl@11160 --- diff --git a/hints/posix-bc.sh b/hints/posix-bc.sh index 8a4f289..f844525 100644 --- a/hints/posix-bc.sh +++ b/hints/posix-bc.sh @@ -21,10 +21,7 @@ esac # -D_XOPEN_SOURCE_EXTENDED alters system headers. # -DPERL_IGNORE_FPUSIG=SIGFPE # Prepend your favorites with Configure -Dccflags=your_favorites -case "$ccflags" in -'') ccflags='-K enum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -DPERL_IGNORE_FPUSIG=SIGFPE' ;; -*) ccflags='$ccflags -Kenum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -DPERL_IGNORE_FPUSIG=SIGFPE' ;; -esac +ccflags="$ccflags -Kenum_long,llm_case_lower,llm_keep,no_integer_overflow -DPOSIX_BC -DUSE_PURE_BISON -D_XOPEN_SOURCE_EXTENDED -DPERL_IGNORE_FPUSIG=SIGFPE" # ccdlflags have yet to be determined. #case "$ccdlflags" in diff --git a/perlio.h b/perlio.h index 78bd06a..e510929 100644 --- a/perlio.h +++ b/perlio.h @@ -62,6 +62,11 @@ #define fseek fseeko #endif +/* BS2000 includes are sometimes a bit non standard :-( */ +#if defined(POSIX_BC) && defined(O_BINARY) && !defined(O_TEXT) +#undef O_BINARY +#endif + #ifdef PERLIO_IS_STDIO /* #define PerlIO_xxxx() as equivalent stdio function */ #include "perlsdio.h"