summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-07 23:35:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-07 23:35:27 +0000
commit7014c40783484eed55bf735c99b9ec618f0b36dd (patch)
tree8122c4552292305a54f3be3887fbac49ba651db6 /perl.h
parent5a7beb56c5db2ec34282658c69d8ac3da98cdd0e (diff)
downloadperl-7014c40783484eed55bf735c99b9ec618f0b36dd.tar.gz
Ignore SIGFPE everywhere.
p4raw-id: //depot/perl@11608
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl.h b/perl.h
index b85b88fb71..82694489bc 100644
--- a/perl.h
+++ b/perl.h
@@ -1754,10 +1754,12 @@ typedef struct ptr_tbl PTR_TBL_t;
# include <floatingpoint.h>
# endif
# define PERL_FPU_INIT fpsetmask(0);
-# elif PERL_IGNORE_FPUSIG
-# define PERL_FPU_INIT signal(PERL_IGNORE_FPUSIG, SIG_IGN);
# else
-# define PERL_FPU_INIT
+# if defined(SIGFPE) && defined(SIG_IGN)
+# define PERL_FPU_INIT signal(SIGFPE, SIG_IGN);
+# else
+# define PERL_FPU_INIT
+# endif
# endif
#endif