Merge from vendor branch TNF:
[pkgsrcv2.git] / databases / mysql55-client / patches / patch-sql_mysqld.cc
1 $NetBSD$
2
3 --- sql/mysqld.cc.orig  2011-06-21 16:42:40.000000000 +0000
4 +++ sql/mysqld.cc
5 @@ -163,7 +163,7 @@ extern int memcntl(caddr_t, size_t, int,
6  int initgroups(const char *,unsigned int);
7  #endif
8  
9 -#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT)
10 +#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT)
11  #include <ieeefp.h>
12  #ifdef HAVE_FP_EXCEPT                          // Fix type conflict
13  typedef fp_except fp_except_t;
14 @@ -194,7 +194,7 @@ extern "C" my_bool reopen_fstreams(const
15  
16  inline void setup_fpu()
17  {
18 -#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT)
19 +#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT)
20    /* We can't handle floating point exceptions with threads, so disable
21       this on freebsd
22       Don't fall for overflow, underflow,divide-by-zero or loss of precision.