summaryrefslogtreecommitdiff
path: root/include/mysql/plugin_password_validation.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2016-05-04 11:42:39 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2016-05-04 11:42:39 +0400
commita02d4023db42755b5cb7d0ccb0543fbe94d1b628 (patch)
treea79b1c21efeab54a4b044ecfcc5bff09fba2fe34 /include/mysql/plugin_password_validation.h
parent5dd0c77e9239217457cf795d6380bdd3bf0808ad (diff)
downloadmariadb-git-a02d4023db42755b5cb7d0ccb0543fbe94d1b628.tar.gz
MDEV-9618 solaris sparc build fails on 10.1.
Compiler there is strict about the C/C++ call model mixing in function variable assumptions. Fixed by adding some 'extern "C"' and changing '?' operator with 'if'.
Diffstat (limited to 'include/mysql/plugin_password_validation.h')
-rw-r--r--include/mysql/plugin_password_validation.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mysql/plugin_password_validation.h b/include/mysql/plugin_password_validation.h
index f3ca5c7e0cf..18c643e877b 100644
--- a/include/mysql/plugin_password_validation.h
+++ b/include/mysql/plugin_password_validation.h
@@ -26,6 +26,10 @@
#include <mysql/plugin.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define MariaDB_PASSWORD_VALIDATION_INTERFACE_VERSION 0x0100
/**
@@ -41,5 +45,10 @@ struct st_mariadb_password_validation
int (*validate_password)(MYSQL_LEX_STRING *username,
MYSQL_LEX_STRING *password);
};
+
+#ifdef __cplusplus
+}
+#endif
+
#endif