1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/cad/cider/files/patch-bc
Pav Lucistnik 7330bcc8bf - Don't link with randline
PR:		ports/58238
Submitted by:	AMAKAWA Shuhei <sa264@cam.ac.uk> (maintainer)
Approved by:	adamw (mentor)
2003-11-21 22:32:47 +00:00

26 lines
533 B
Plaintext

--- cider/common/src/bin/main.c.orig Sat Mar 12 08:20:59 1994
+++ cider/common/src/bin/main.c Fri Oct 17 22:19:55 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. */