diff options
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/gdb_stat.h | 5 | ||||
-rw-r--r-- | gdb/remote-mips.c | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5308557..aa7fc73 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2001-04-02 J.T. Conklin <jtc@redback.com> + * remote-mips.c (S_IROTH): Moved definition from here. + * gdb_stat.h (S_IROTH): to here. + * remote.c (remote_protocol_e, remote_protocol_E): Define. (set_remote_protocol_e_packet_cmd) (set_remote_protocol_E_packet_cmd) 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) */ diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index c923c35..dfde85b 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -31,17 +31,9 @@ #include "target.h" #include "remote-utils.h" #include "gdb_string.h" +#include "gdb_stat.h" #include "regcache.h" - -#include <sys/types.h> -#include <sys/stat.h> #include <ctype.h> - -/* Microsoft C's stat.h doesn't define all the POSIX file modes. */ -#ifndef S_IROTH -#define S_IROTH S_IREAD -#endif - /* Breakpoint types. Values 0, 1, and 2 must agree with the watch |