X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=mysql8.patch;fp=mysql8.patch;h=d771e69153a20ff85321e5916d19794316905812;hb=0ae3a29a383e29d4f6eabf0411b6a627828d9299;hp=0000000000000000000000000000000000000000;hpb=f31ad4e11f1d29af01770514f34a77857ddb5825;p=packages%2Fapr-util.git diff --git a/mysql8.patch b/mysql8.patch new file mode 100644 index 0000000..d771e69 --- /dev/null +++ b/mysql8.patch @@ -0,0 +1,27 @@ +https://bz.apache.org/bugzilla/show_bug.cgi?id=62631 + +--- dbd/apr_dbd_mysql.c 2014-09-16 11:45:15.000000000 +0000 ++++ dbd/apr_dbd_mysql.c 2018-08-11 20:25:13.202562000 +0000 +@@ -47,6 +47,13 @@ + #include "apr_strings.h" + #include "apr_lib.h" + #include "apr_buckets.h" ++/* MySQL 8.0 replaces my_bool with C99 bool. Earlier versions of MySQL had ++* a typedef to char. Gem users reported failures on big endian systems when ++* using C99 bool types with older MySQLs due to mismatched behavior. */ ++#ifndef HAVE_TYPE_MY_BOOL ++#include ++typedef bool my_bool; ++#endif + + #include "apr_dbd_internal.h" + +@@ -1262,7 +1262,7 @@ + + static void dbd_mysql_init(apr_pool_t *pool) + { +-#if MYSQL_VERSION_ID < 100000 ++#if MYSQL_VERSION_ID < 80002 + my_init(); + #endif + mysql_thread_init();