From: Chip Salzenberg Date: Mon, 17 Feb 1997 05:59:02 +0000 (+1200) Subject: Eliminate FP exceptions under SCO 5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=35f4835537ae774426df7791662087b4be88978a;p=p5sagit%2Fp5-mst-13.2.git Eliminate FP exceptions under SCO 5 --- diff --git a/hints/sco.sh b/hints/sco.sh index 72c3d1c..6062fbe 100644 --- a/hints/sco.sh +++ b/hints/sco.sh @@ -84,7 +84,7 @@ icc)# Apparently, SCO's cc gives rather verbose warnings # Set -w0 to turn them off. case $scorls in 3) ccflags="$ccflags -W0 -quiet -U M_XENIX" ;; - 5) ccflags="$ccflags -w0 -U M_XENIX" ;; + 5) ccflags="$ccflags -w0 -U M_XENIX -DPERL_SCO5" ;; esac ;; esac diff --git a/unixish.h b/unixish.h index e8ff11a..f21ca73 100644 --- a/unixish.h +++ b/unixish.h @@ -93,11 +93,6 @@ #endif #define ABORT() kill(getpid(),SIGABRT); -#define BIT_BUCKET "/dev/null" -#define PERL_SYS_INIT(c,v) -#define PERL_SYS_TERM() -#define dXSUB_SYS int dummy - /* * fwrite1() should be a routine with the same calling sequence as fwrite(), * but which outputs all of the bytes requested as a single stream (unlike @@ -112,3 +107,13 @@ #define my_getenv(var) getenv(var) +#ifdef PERL_SCO5 +# define PERL_SYS_INIT(c,v) fpsetmask(0) +#else +# define PERL_SYS_INIT(c,v) +#endif +#define PERL_SYS_TERM() + +#define BIT_BUCKET "/dev/null" + +#define dXSUB_SYS int dummy