summaryrefslogtreecommitdiff
path: root/cad/cider/files/patch-ad
blob: b6f5736836b97ec7fe6a0c26511d4d987b0feb7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- spice/common/src/bin/main.c.orig	Sat Mar 12 08:22:28 1994
+++ spice/common/src/bin/main.c	Fri Oct 17 22:11:28 2003
@@ -36,6 +36,11 @@
 #endif
 
 #include "patchlev.h"
+
+#ifdef __FreeBSD__
+#include <ieeefp.h>
+#endif
+
 #include "suffix.h"
 
 /* (Virtual) Machine architecture parameters */
@@ -214,6 +219,10 @@
     FILE	*fp;
     FILE	*circuit_file;
 
+#endif
+
+#ifdef __FreeBSD__
+    fpsetmask(fpgetmask() & ~FP_X_INV & ~FP_X_DZ & ~FP_X_OFL);
 #endif
 
     /* MFB tends to jump to 0 on errors.  This tends to catch it. */