summaryrefslogtreecommitdiff
path: root/math/scilab/patches/patch-ao
blob: 59a076012befa41b0e6c0da22255a4c78ae2dda2 (plain)
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
$NetBSD: patch-ao,v 1.2 1999/03/05 11:22:35 frueauf Exp $

--- imp/Slatexpr2.c.orig	Fri Dec 18 23:25:51 1998
+++ imp/Slatexpr2.c	Fri Dec 18 23:28:00 1998
@@ -9,4 +9,12 @@
 #include <stdio.h>
 
+#if defined(netbsd)
+#include <ieeefp.h>
+#endif
+
+#if defined(freebsd)
+#include <floatingpoint.h>
+#endif
+
 void readOneLine();
 
@@ -163,4 +171,7 @@
   FILE *fd;
   FILE *fdo;
+#if (defined(netbsd) && !defined(__alpha__)) || defined(freebsd)
+  fpsetmask(0);
+#endif
 #ifdef WIN32 
   SciEnv();