Control: tags -1 + patch Control: user [email protected] Control: usertags -1 + hurd
Hello, I confirm that this is becoming a problem. I also confirm that Andreas Beckmann, le Thu 23 Jul 2015 10:34:25 +0200, a écrit : > There may be a trivial fix for this found in mariadb: > https://github.com/MariaDB/server/commit/a117030 > > and the corresponding mariadb upstream bug: > https://mariadb.atlassian.net/browse/MDEV-8131 merely putting the definition of _GNU_SOURCE before #includes (as it should always be) fixes the build, here is a tested patch. Samuel
--- a/plugin/auth/dialog.c.orig 2015-09-18 00:02:35.000000000 +0000 +++ b/plugin/auth/dialog.c 2015-09-18 00:02:40.000000000 +0000 @@ -38,6 +38,10 @@ # define RTLD_DEFAULT GetModuleHandle(NULL) #endif +#if !defined (_GNU_SOURCE) +# define _GNU_SOURCE /* for RTLD_DEFAULT */ +#endif + #include <my_global.h> #include <mysql.h> #include <mysql/plugin_auth.h> @@ -46,10 +50,6 @@ #include <stdio.h> #include <stdlib.h> -#if !defined (_GNU_SOURCE) -# define _GNU_SOURCE /* for RTLD_DEFAULT */ -#endif - /** first byte of the question string is the question "type". It can be an "ordinary" or a "password" question.

