b148e9ca1d
PR: 17685 Submitted by: Alexander Langer <alex@big.endian.de> Patch by: KATO Tsuguru <tkato@prontomail.ne.jp>
23 lines
422 B
Plaintext
23 lines
422 B
Plaintext
--- 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 @@
|
|
|
|
#include <stdio.h>
|
|
#include <math.h>
|
|
+#if defined(__FreeBSD__)
|
|
+#include <floatingpoint.h>
|
|
+#endif
|
|
|
|
#ifdef HAVE_READLINE
|
|
#include <readline/readline.h>
|
|
@@ -735,6 +738,9 @@
|
|
if (isNegative) {
|
|
num = -num;
|
|
}
|
|
+#if defined(__FreeBSD__)
|
|
+ fpsetmask(0);
|
|
+#endif
|
|
|
|
if (isFloat) {
|
|
lvalp->fval = num;
|