$NetBSD: patch-ad,v 1.4 2008/09/18 11:51:37 taca Exp $

--- sql/mysqld.cc.orig	2008-08-04 15:20:07.000000000 +0300
+++ sql/mysqld.cc	2008-09-16 13:46:29.000000000 +0300
@@ -181,7 +181,7 @@
 int initgroups(const char *,unsigned int);
 #endif
 
-#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H)
+#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(HAVE_IEEEFP_H)
 #include <ieeefp.h>
 #ifdef HAVE_FP_EXCEPT				// Fix type conflict
 typedef fp_except fp_except_t;
@@ -3705,7 +3705,7 @@
   init_ssl();
 
 #ifdef HAVE_LIBWRAP
-  libwrapName= my_progname+dirname_length(my_progname);
+  libwrapName= (char *)my_progname+dirname_length(my_progname);
   openlog(libwrapName, LOG_PID, LOG_AUTH);
 #endif
 
