Lines 1-6
Link Here
|
1 |
--- sql/mysqld.cc.orig 2017-05-14 23:13:18 UTC |
1 |
--- sql/mysqld.cc.orig 2021-05-05 15:26:23 UTC |
2 |
+++ sql/mysqld.cc |
2 |
+++ sql/mysqld.cc |
3 |
@@ -4838,8 +4840,9 @@ static void init_ssl() |
3 |
@@ -206,7 +206,7 @@ typedef fp_except fp_except_t; |
|
|
4 |
|
5 |
inline void setup_fpu() |
6 |
{ |
7 |
-#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT) |
8 |
+#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT) && defined(FP_X_INV) |
9 |
/* We can't handle floating point exceptions with threads, so disable |
10 |
this on freebsd |
11 |
Don't fall for overflow, underflow,divide-by-zero or loss of precision. |
12 |
@@ -219,7 +219,7 @@ inline void setup_fpu() |
13 |
fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ | |
14 |
FP_X_IMP)); |
15 |
#endif /* FP_X_DNML */ |
16 |
-#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT */ |
17 |
+#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT && defined(FP_X_INV) */ |
18 |
|
19 |
#ifdef HAVE_FEDISABLEEXCEPT |
20 |
fedisableexcept(FE_ALL_EXCEPT); |
21 |
@@ -5033,8 +5033,9 @@ static void init_ssl() |
4 |
while ((err= ERR_get_error())) |
22 |
while ((err= ERR_get_error())) |
5 |
sql_print_warning("SSL error: %s", ERR_error_string(err, NULL)); |
23 |
sql_print_warning("SSL error: %s", ERR_error_string(err, NULL)); |
6 |
} |
24 |
} |
7 |
- |
|
|