1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/databases/mysql54-server/files/patch-as
Dirk Froemberg 56977a1792 Fix build error!
Submitted by:	Dirk-Willem van Gulik <dirkx@webweaving.org>
2000-02-21 20:48:28 +00:00

17 lines
585 B
Plaintext

--- sql/mysqld.cc.orig Sun Feb 13 02:40:18 2000
+++ sql/mysqld.cc Mon Feb 21 21:24:51 2000
@@ -63,8 +63,11 @@
inline void reset_floating_point_exceptions()
{
/* Don't fall for overflow, underflow,divide-by-zero or loss of precision */
- fpsetmask(~(FP_X_INV | FP_X_DNML | FP_X_OFL | FP_X_UFL |
- FP_X_DZ | FP_X_IMP));
+#if defined(__i386__)
+ fpsetmask(~(FP_X_INV | FP_X_DNML | FP_X_OFL | FP_X_UFL | FP_X_DZ | FP_X_IMP));
+#else
+ fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ | FP_X_IMP));
+#endif
}
#else
#define reset_floating_point_exceptions()