summaryrefslogtreecommitdiff
path: root/databases/mysql5-server/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql5-server/patches/patch-ad')
-rw-r--r--databases/mysql5-server/patches/patch-ad22
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/mysql5-server/patches/patch-ad b/databases/mysql5-server/patches/patch-ad
new file mode 100644
index 00000000000..0f1603af9b9
--- /dev/null
+++ b/databases/mysql5-server/patches/patch-ad
@@ -0,0 +1,22 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/10/31 09:22:26 xtraeme Exp $
+
+--- sql/mysqld.cc.orig 2005-10-17 03:27:30.000000000 +0200
++++ sql/mysqld.cc 2005-10-31 09:57:13.000000000 +0100
+@@ -171,7 +171,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;
+@@ -3276,7 +3276,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
+