mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
Fixed build failure on Windows
This commit is contained in:
parent
7e6a600d13
commit
4e08cdf52a
1 changed files with 10 additions and 3 deletions
|
@ -35,9 +35,16 @@ extern "C" {
|
|||
#define MY_S_ISUID S_ISUID /* set user id on execution */
|
||||
#define MY_S_ISGID S_ISGID /* set group id on execution */
|
||||
#define MY_S_ISVTX S_ISVTX /* save swapped text even after use */
|
||||
#define MY_S_IREAD S_IRUSR /* read permission, owner */
|
||||
#define MY_S_IWRITE S_IWUSR /* write permission, owner */
|
||||
#define MY_S_IEXEC S_IXUSR /* execute/search permission, owner */
|
||||
|
||||
#ifndef S_IREAD
|
||||
#define MY_S_IREAD S_IRUSR /* read permission, owner */
|
||||
#define MY_S_IWRITE S_IWUSR /* write permission, owner */
|
||||
#define MY_S_IEXEC S_IXUSR /* execute/search permission, owner */
|
||||
#else
|
||||
#define MY_S_IREAD S_IREAD /* read permission, owner */
|
||||
#define MY_S_IWRITE S_IWRITE /* write permission, owner */
|
||||
#define MY_S_IEXEC S_IEXEC /* execute/search permission, owner */
|
||||
#endif
|
||||
|
||||
#define MY_S_ISDIR(m) (((m) & MY_S_IFMT) == MY_S_IFDIR)
|
||||
#define MY_S_ISCHR(m) (((m) & MY_S_IFMT) == MY_S_IFCHR)
|
||||
|
|
Loading…
Reference in a new issue