Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
MinGW: Add missing file mode bit defines
author
Sebastian Schuberth
<sschuberth@gmail.com>
Mon, 28 Dec 2009 17:13:52 +0000
(18:13 +0100)
committer
Pat Thoyts
<patthoyts@users.sourceforge.net>
Fri, 1 Oct 2010 22:08:43 +0000
(23:08 +0100)
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
compat/mingw.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
e7cf4e9
)
diff --git
a/compat/mingw.h
b/compat/mingw.h
index 912c4256fd99e95b0b941d89274b63668ceb18b1..74c799ad38600a8334ab8f922e0a7dd8ed80b45d 100644
(file)
--- a/
compat/mingw.h
+++ b/
compat/mingw.h
@@
-12,12
+12,24
@@
typedef int uid_t;
#define S_IFLNK 0120000 /* Symbolic link */
#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)
#define S_ISSOCK(x) 0
#define S_IFLNK 0120000 /* Symbolic link */
#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)
#define S_ISSOCK(x) 0
+
+#ifndef _STAT_H_
+#define S_IRUSR 0
+#define S_IWUSR 0
+#define S_IXUSR 0
+#define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
+#endif
#define S_IRGRP 0
#define S_IWGRP 0
#define S_IXGRP 0
#define S_IRGRP 0
#define S_IWGRP 0
#define S_IXGRP 0
-#define S_I
SGID 0
+#define S_I
RWXG (S_IRGRP | S_IWGRP | S_IXGRP)
#define S_IROTH 0
#define S_IROTH 0
+#define S_IWOTH 0
#define S_IXOTH 0
#define S_IXOTH 0
+#define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
+#define S_ISUID 0
+#define S_ISGID 0
+#define S_ISVTX 0
#define WIFEXITED(x) 1
#define WIFSIGNALED(x) 0
#define WIFEXITED(x) 1
#define WIFSIGNALED(x) 0