diff options
author | Fredrik Fornwall <fredrik@fornwall.net> | 2017-06-30 23:15:22 +0200 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-07-06 09:52:12 +0400 |
commit | 7e6a600d139f6820d157c2e52fe3fe1004097e08 (patch) | |
tree | 545946e49e125ea7fdbfb4f7a5a64d78f423b0fb /include/my_dir.h | |
parent | 0ff62ad808a27cf7cfec8da83ee988c9ac835f82 (diff) | |
download | mariadb-git-7e6a600d139f6820d157c2e52fe3fe1004097e08.tar.gz |
Remove obsolete synonyms for access bits
Replace S_IREAD, S_IWRITE and S_IEXEC with more modern equivalents.
Fixes building for Android.
Diffstat (limited to 'include/my_dir.h')
-rw-r--r-- | include/my_dir.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/my_dir.h b/include/my_dir.h index be988ae790c..c65b4441f07 100644 --- a/include/my_dir.h +++ b/include/my_dir.h @@ -35,9 +35,9 @@ 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_IREAD /* read permission, owner */ -#define MY_S_IWRITE S_IWRITE /* write permission, owner */ -#define MY_S_IEXEC S_IEXEC /* execute/search permission, owner */ +#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 */ #define MY_S_ISDIR(m) (((m) & MY_S_IFMT) == MY_S_IFDIR) #define MY_S_ISCHR(m) (((m) & MY_S_IFMT) == MY_S_IFCHR) |