summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/posix.h b/src/posix.h
index d35fe08a..71bb8228 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -11,8 +11,15 @@
#include <fcntl.h>
#include <time.h>
+#ifndef S_IFGITLINK
#define S_IFGITLINK 0160000
#define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
+#endif
+
+/* if S_ISGID is not defined, then don't try to set it */
+#ifndef S_ISGID
+#define S_ISGID 0
+#endif
#if !defined(O_BINARY)
#define O_BINARY 0