3 --- sql/mysqld.cc.orig 2011-06-21 16:42:40.000000000 +0000
5 @@ -163,7 +163,7 @@ extern int memcntl(caddr_t, size_t, int,
6 int initgroups(const char *,unsigned int);
9 -#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT)
10 +#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT)
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
16 inline void setup_fpu()
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
22 Don't fall for overflow, underflow,divide-by-zero or loss of precision.