1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

Use current signal code constants for SIGFPE rather than deprecated ones.

PR:		226661
Reviewed by:	joemann@beefree.free.de (maintainer)
Approved by:	brooks
This commit is contained in:
John Baldwin 2018-03-19 17:33:03 +00:00
parent 316915c65d
commit 6201dd904e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=465024

View File

@ -0,0 +1,13 @@
--- base/runtime/mach-dep/signal-sysdep.h.orig 2018-03-16 11:21:38.240870000 -0700
+++ base/runtime/mach-dep/signal-sysdep.h 2018-03-16 11:22:06.398280000 -0700
@@ -447,8 +447,8 @@ extern void SetFSR();
# elif defined(OPSYS_FREEBSD)
/** x86, FreeBSD **/
# define SIG_FAULT1 SIGFPE
-# define INT_DIVZERO(s, c) (((s) == SIGFPE) && ((c) == FPE_INTDIV_TRAP))
-# define INT_OVFLW(s, c) (((s) == SIGFPE) && ((c) == FPE_INTOVF_TRAP))
+# define INT_DIVZERO(s, c) (((s) == SIGFPE) && ((c) == FPE_INTDIV))
+# define INT_OVFLW(s, c) (((s) == SIGFPE) && ((c) == FPE_INTOVF))
# define SIG_GetCode(info, scp) (info)
# define SIG_GetPC(scp) ((scp)->sc_pc)