summaryrefslogtreecommitdiff
path: root/math/Scilab/files/patch-ap
blob: 96dfc67ef43b1e0ec2f8dc77210837cdb1ddf61e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- ./imp/Slpr.c.orig	Mon Jul 20 07:34:06 1998
+++ ./imp/Slpr.c	Sat Aug  8 13:11:59 1998
@@ -9,4 +9,11 @@
 #include <stdio.h>
 
+#if defined(netbsd)
+#include <ieeefp.h>
+#endif
+
+#if defined(freebsd)
+#include <floatingpoint.h>
+#endif
 
 #ifdef __STDC__
@@ -59,4 +66,7 @@
   int i ;
   FILE *fd;
+#if (defined(netbsd) || defined(freebsd)) && !defined(__alpha__)
+  fpsetmask(0);
+#endif
   if (argc <= 2) { int i=0;
 		   while (strcmp(UsageStr[i],"fin")!=0)