File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,16 @@ extern "C" {
35
35
#define MY_S_ISUID S_ISUID /* set user id on execution */
36
36
#define MY_S_ISGID S_ISGID /* set group id on execution */
37
37
#define MY_S_ISVTX S_ISVTX /* save swapped text even after use */
38
- #define MY_S_IREAD S_IRUSR /* read permission, owner */
39
- #define MY_S_IWRITE S_IWUSR /* write permission, owner */
40
- #define MY_S_IEXEC S_IXUSR /* execute/search permission, owner */
38
+
39
+ #ifndef S_IREAD
40
+ #define MY_S_IREAD S_IRUSR /* read permission, owner */
41
+ #define MY_S_IWRITE S_IWUSR /* write permission, owner */
42
+ #define MY_S_IEXEC S_IXUSR /* execute/search permission, owner */
43
+ #else
44
+ #define MY_S_IREAD S_IREAD /* read permission, owner */
45
+ #define MY_S_IWRITE S_IWRITE /* write permission, owner */
46
+ #define MY_S_IEXEC S_IEXEC /* execute/search permission, owner */
47
+ #endif
41
48
42
49
#define MY_S_ISDIR (m ) (((m) & MY_S_IFMT) == MY_S_IFDIR)
43
50
#define MY_S_ISCHR (m ) (((m) & MY_S_IFMT) == MY_S_IFCHR)
You can’t perform that action at this time.
0 commit comments