aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2009-12-28 18:13:52 +0100
committerPat Thoyts <patthoyts@users.sourceforge.net>2010-10-01 23:08:43 +0100
commit4091bfc9616d5ac0371bb2ed80558f4a8f4d12f5 (patch)
treef9cce94d7e2dd60da100128b6db0e165adfce181 /compat
parente7cf4e94c6f147953af4d079ca2e9ef0d7a29ae9 (diff)
downloadgit-4091bfc9616d5ac0371bb2ed80558f4a8f4d12f5.tar.gz
git-4091bfc9616d5ac0371bb2ed80558f4a8f4d12f5.tar.xz
MinGW: Add missing file mode bit defines
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 912c4256f..74c799ad3 100644
--- 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
+
+#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_ISGID 0
+#define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
#define S_IROTH 0
+#define S_IWOTH 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