diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-10-21 23:07:13 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-10-21 23:07:13 +0200 |
commit | aeaa112edbf40f17c7978642539443544241185d (patch) | |
tree | 97faebc5269e23af60a451907271bfa11643f353 /plugin/auth_dialog | |
parent | b3223453f7e4398ff0f55471ac7dc4aecf2caf8d (diff) | |
download | mariadb-git-aeaa112edbf40f17c7978642539443544241185d.tar.gz |
fixes for windows
Diffstat (limited to 'plugin/auth_dialog')
-rw-r--r-- | plugin/auth_dialog/dialog.c | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/plugin/auth_dialog/dialog.c b/plugin/auth_dialog/dialog.c index 48e9c4a3882..9f974f6898f 100644 --- a/plugin/auth_dialog/dialog.c +++ b/plugin/auth_dialog/dialog.c @@ -24,31 +24,15 @@ asks the user the question, as provided by the server and reports the answer back to the server. No encryption is involved, the answers are sent in clear text. - - Two examples are provided: two_questions server plugin, that asks - the password and an "Are you sure?" question with a reply "yes, of course". - It demonstrates the usage of "password" (input is hidden) and "ordinary" - (input can be echoed) questions, and how to mark the last question, - to avoid an extra roundtrip. - - And three_attempts plugin that gives the user three attempts to enter - a correct password. It shows the situation when a number of questions - is not known in advance. */ -#if defined (WIN32) && !defined (RTLD_DEFAULT) -# define RTLD_DEFAULT GetModuleHandle(NULL) -#endif - -#if !defined (_GNU_SOURCE) -# define _GNU_SOURCE /* for RTLD_DEFAULT */ -#endif - +#include <my_global.h> #include <mysql/client_plugin.h> -#include <string.h> -#include <stdio.h> -#include <stdlib.h> #include <mysql.h> -#include <dlfcn.h> +#include <string.h> + +#if defined (_WIN32) +# define RTLD_DEFAULT GetModuleHandle(NULL) +#endif /* This plugin performs a dialog with the user, asking questions and |