2000-03-31 17:02:49 +00:00
|
|
|
--- lib/lex.c.orig Mon Feb 21 19:05:50 2000
|
|
|
|
+++ lib/lex.c Sat Mar 25 21:43:17 2000
|
|
|
|
@@ -50,6 +50,9 @@
|
|
|
|
|
1999-12-27 21:43:34 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <math.h>
|
2000-03-31 17:02:49 +00:00
|
|
|
+#if defined(__FreeBSD__)
|
1999-12-27 21:43:34 +00:00
|
|
|
+#include <floatingpoint.h>
|
2000-03-31 17:02:49 +00:00
|
|
|
+#endif
|
|
|
|
|
1999-12-27 21:43:34 +00:00
|
|
|
#ifdef HAVE_READLINE
|
|
|
|
#include <readline/readline.h>
|
2000-03-31 17:02:49 +00:00
|
|
|
@@ -735,6 +738,9 @@
|
1999-12-27 21:43:34 +00:00
|
|
|
if (isNegative) {
|
|
|
|
num = -num;
|
|
|
|
}
|
2000-03-31 17:02:49 +00:00
|
|
|
+#if defined(__FreeBSD__)
|
1999-12-27 21:43:34 +00:00
|
|
|
+ fpsetmask(0);
|
2000-03-31 17:02:49 +00:00
|
|
|
+#endif
|
1999-12-27 21:43:34 +00:00
|
|
|
|
2000-03-31 17:02:49 +00:00
|
|
|
if (isFloat) {
|
1999-12-27 21:43:34 +00:00
|
|
|
lvalp->fval = num;
|