mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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'.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user