aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdb_stat.h')
-rw-r--r--gdb/gdb_stat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdb_stat.h b/gdb/gdb_stat.h
index e0c8f88..f3577f2 100644
--- a/gdb/gdb_stat.h
+++ b/gdb/gdb_stat.h
@@ -66,4 +66,9 @@
#define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
#endif
+/* Microsoft C's stat.h doesn't define all the POSIX file modes. */
+#ifndef S_IROTH
+#define S_IROTH S_IREAD
+#endif
+
#endif /* !defined(GDB_STAT_H) */