2001-10-09 11:21:39 +00:00
|
|
|
--- cider/common/src/bin/main.c.orig Sat Mar 12 08:20:59 1994
|
2003-11-21 22:32:47 +00:00
|
|
|
+++ cider/common/src/bin/main.c Fri Oct 17 22:19:55 2003
|
|
|
|
@@ -36,6 +36,11 @@
|
2001-10-09 11:21:39 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "patchlev.h"
|
|
|
|
+
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+#include <ieeefp.h>
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#include "suffix.h"
|
|
|
|
|
|
|
|
/* (Virtual) Machine architecture parameters */
|
2003-11-21 22:32:47 +00:00
|
|
|
@@ -214,6 +219,10 @@
|
|
|
|
FILE *fp;
|
|
|
|
FILE *circuit_file;
|
2001-10-09 11:21:39 +00:00
|
|
|
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+ fpsetmask(fpgetmask() & ~FP_X_INV & ~FP_X_DZ & ~FP_X_OFL);
|
|
|
|
#endif
|
|
|
|
|
2003-11-21 22:32:47 +00:00
|
|
|
/* MFB tends to jump to 0 on errors. This tends to catch it. */
|