diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-10-28 13:35:43 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-10-28 13:37:49 +0100 |
commit | cb04c1bc64031c7a2e5e0af16c97766b2a331c4a (patch) | |
tree | 3499beca387f84c0aac3cfd043966c8332dd8f70 | |
parent | 3829b408d689182f05804ec045c9705da8de4e34 (diff) | |
download | mariadb-git-cb04c1bc64031c7a2e5e0af16c97766b2a331c4a.tar.gz |
MDEV-24040 - fix appveyor build
Old SDK is missing #define SECURITY_MAX_SID_STRING_CHARACTERS
-rw-r--r-- | sql/mysqld.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 3a5222d32de..433a6dacc01 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2597,6 +2597,11 @@ static void init_pipe_security_descriptor() (FILE_READ_DATA | FILE_READ_EA | FILE_READ_ATTRIBUTES | READ_CONTROL | \ SYNCHRONIZE | FILE_WRITE_DATA | FILE_WRITE_EA | FILE_WRITE_ATTRIBUTES) +#ifndef SECURITY_MAX_SID_STRING_CHARACTERS +/* Old SDK does not have this constant */ +#define SECURITY_MAX_SID_STRING_CHARACTERS 187 +#endif + /* Figure out SID of the user that runs the server, then create SDDL string for pipe permissions, and convert it to the security descriptor. |