Skip to content

Commit 8b67b6b

Browse files
Remove call to ieee_handler(). (#119)
When `FLTINT` is defined (which is currently only on SunOS), if `OS5` was not defined, then it tried to use `ieee_handler` which doesn't exist on Linux and friends. If we were to enable `FLTINT` on more platforms, then we'd want to always be using more modern signal handling and not `ieee_handler`.
1 parent 3336926 commit 8b67b6b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/timer.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -793,13 +793,9 @@ void int_fp_service(int sig, int code, struct sigcontext *scp)
793793
}
794794

795795
void int_fp_init() { /* first set up the signal handler */
796-
#ifdef OS5
797796
if (sigset(SIGFPE, int_fp_service))
798-
#else
799-
if (ieee_handler("set", "all", int_fp_service))
800-
#endif /* OS5 */
801797

802-
perror("Sigvec for FPE failed");
798+
perror("Sigset for FPE failed");
803799
DBPRINT(("FP interrupts enabled\n"));
804800
}
805801

0 commit comments

Comments
 (0)