Change 11160 by jhi@alpha on 2001/07/05 13:06:53

        POSIX-BC tweaks from Thomas Dorner.

Affected files ...

... //depot/perl/hints/posix-bc.sh#8 edit
... //depot/perl/perlio.h#30 edit

Differences ...

==== //depot/perl/hints/posix-bc.sh#8 (text) ====
Index: perl/hints/posix-bc.sh
--- perl/hints/posix-bc.sh.~1~  Thu Jul  5 07:15:05 2001
+++ perl/hints/posix-bc.sh      Thu Jul  5 07:15:05 2001
@@ -21,10 +21,7 @@
 # -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

==== //depot/perl/perlio.h#30 (text) ====
Index: perl/perlio.h
--- perl/perlio.h.~1~   Thu Jul  5 07:15:05 2001
+++ perl/perlio.h       Thu Jul  5 07:15:05 2001
@@ -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"
End of Patch.

Reply via email to