diff options
author | joerg <joerg@FreeBSD.org> | 1999-01-26 17:35:23 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1999-01-26 17:35:23 +0000 |
commit | 71b1928230072e62e5bd95f3c91bb3429ce24195 (patch) | |
tree | 4da7d0501fb680f96bbac942a62ace904003cfca /cad/xcircuit/files | |
parent | 1efe4ac290323f829738d3b9e69ff73ed71a2839 (diff) | |
download | FreeBSD-ports-71b1928230072e62e5bd95f3c91bb3429ce24195.zip FreeBSD-ports-71b1928230072e62e5bd95f3c91bb3429ce24195.tar.gz |
Avoid floating point exceptions. The program seems to handle the
overflow case well (enough).
Diffstat (limited to 'cad/xcircuit/files')
-rw-r--r-- | cad/xcircuit/files/patch-ab | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cad/xcircuit/files/patch-ab b/cad/xcircuit/files/patch-ab new file mode 100644 index 0000000..f9d849e --- /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 <sys/stat.h> + #include <errno.h> + #include <limits.h> ++#ifdef __FreeBSD__ ++#include <machine/floatingpoint.h> ++#endif + + #undef FUNCPROTO + #include <X11/Intrinsic.h> +@@ -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 */ |