From 01f28d9d89d0a711031dda92a95e3c0513548208 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 26 Jan 1999 17:35:23 +0000 Subject: Avoid floating point exceptions. The program seems to handle the overflow case well (enough). --- cad/xcircuit/files/patch-ab | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cad/xcircuit/files/patch-ab diff --git a/cad/xcircuit/files/patch-ab b/cad/xcircuit/files/patch-ab new file mode 100644 index 000000000000..f9d849eaba21 --- /dev/null +++ b/cad/xcircuit/files/patch-ab @@ -0,0 +1,23 @@ +--- xcircuit.c.orig Thu May 21 16:43:03 1998 ++++ xcircuit.c Tue Jan 26 18:20:21 1999 +@@ -30,6 +30,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + + #undef FUNCPROTO + #include +@@ -3575,6 +3578,10 @@ + Arg wargs[12]; + short i, j, k = 0, n = 0, maxbuttons, maxcolors; + objectptr *page; ++ ++#ifdef __FreeBSD__ ++ fpsetmask(0); ++#endif + + /*---------------------------*/ + /* initialize user variables */ -- cgit v1.2.3