freebsd-ports/math/Scilab/files/patch-ai
Steve Price dca1739cb8 Update to version 2.4.1.
PR:		14877
Submitted by:	Pedro F. Giffuni <pfgiffun@bachue.usc.unal.edu.co>
1999-11-27 01:38:31 +00:00

30 lines
517 B
Plaintext

--- ./routines/default/scimem.c.orig Mon Jul 20 07:50:29 1998
+++ ./routines/default/scimem.c Sat Aug 8 13:13:30 1998
@@ -8,6 +8,25 @@
#endif
-
#include "../machine.h"
+
+#if defined(netbsd)
+#include <ieeefp.h>
+#endif
+
+#if defined(freebsd)
+#include <floatingpoint.h>
+#endif
+
+#if (defined(netbsd) || defined(freebsd))&& !defined(__alpha__)
+void C2F(nofpex)()
+{
+ fpsetmask(0); /* Don't dump core on FPE return Inf or NaN */
+}
+#else
+void C2F(nofpex)()
+{
+ return;
+}
+#endif
char *the_p=NULL;