diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-05-04 11:42:39 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-05-04 11:42:39 +0400 |
commit | a02d4023db42755b5cb7d0ccb0543fbe94d1b628 (patch) | |
tree | a79b1c21efeab54a4b044ecfcc5bff09fba2fe34 /include/mysql/plugin_password_validation.h | |
parent | 5dd0c77e9239217457cf795d6380bdd3bf0808ad (diff) | |
download | mariadb-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.h | 9 |
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 |