1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Fix patch-file.

Noticed by: SANETO Takanori <sanewo@ba2.so-net.ne.jp>
This commit is contained in:
Edwin Groothuis 2004-07-17 01:57:52 +00:00
parent 2556ea4057
commit 4982d9a25d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113788

View File

@ -4,7 +4,7 @@
# define EINTR E_ILLFNC
#endif
+#if defined(__FreeBSD__) && ( defined(__i386__)
+#if defined(__FreeBSD__) && defined(__i386__)
+# include <floatingpoint.h>
+#endif
+
@ -15,7 +15,7 @@
int argc;
char *argv[];
{
+#if defined(__FreeBSD__) && ( defined(__i386__)
+#if defined(__FreeBSD__) && defined(__i386__)
+ /* allow divide by zero -- Inf */
+ fpsetmask(fpgetmask() & ~(FP_X_DZ | FP_X_INV));
+#endif
@ -27,7 +27,7 @@
}
XCloseDisplay(dpy);
+
+#if defined(__FreeBSD__) && ( defined(__i386__)
+#if defined(__FreeBSD__) && defined(__i386__)
+ fpresetsticky(FP_X_DZ | FP_X_INV);
+ fpsetmask(fpgetmask() | (FP_X_DZ | FP_X_INV));
+#endif
@ -41,7 +41,7 @@
# endif
#endif /* _Windows */
+#if defined(__FreeBSD__) && ( defined(__i386__)
+#if defined(__FreeBSD__) && defined(__i386__)
+# include <floatingpoint.h>
+#endif
+
@ -52,7 +52,7 @@
_control87(MCW_EM, MCW_EM);
#endif
+#if defined(__FreeBSD__) && ( defined(__i386__)
+#if defined(__FreeBSD__) && defined(__i386__)
+ /* allow divide by zero -- Inf */
+ fpsetmask(fpgetmask() & ~(FP_X_DZ | FP_X_INV));
+#endif
@ -66,7 +66,7 @@
RexxDeregisterSubcom("GNUPLOT", NULL);
+#endif
+
+#if defined(__FreeBSD__) && ( defined(__i386__)
+#if defined(__FreeBSD__) && defined(__i386__)
+ fpresetsticky(FP_X_DZ | FP_X_INV);
+ fpsetmask(fpgetmask() | (FP_X_DZ | FP_X_INV));
#endif