summaryrefslogtreecommitdiff
path: root/plugin/auth_gssapi/server_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/auth_gssapi/server_plugin.cc')
-rw-r--r--plugin/auth_gssapi/server_plugin.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugin/auth_gssapi/server_plugin.cc b/plugin/auth_gssapi/server_plugin.cc
index 0c0bcbbbb72..6ffcf5c65c1 100644
--- a/plugin/auth_gssapi/server_plugin.cc
+++ b/plugin/auth_gssapi/server_plugin.cc
@@ -31,9 +31,18 @@
GSSAPI authentication plugin, server side
*/
-#include <my_sys.h>
+
+#ifdef _WIN32
+typedef unsigned __int64 my_ulonglong;
+#else
+typedef unsigned long long my_ulonglong;
+#endif
+
+#include <stdlib.h>
#include <mysqld_error.h>
+#include <typelib.h>
#include <mysql/plugin_auth.h>
+#include "string.h"
#include "server_plugin.h"
#include "common.h"
@@ -132,7 +141,7 @@ static const char* mech_names[] = {
NULL
};
static TYPELIB mech_name_typelib = {
- array_elements(mech_names) - 1,
+ 3,
"mech_name_typelib",
mech_names,
NULL