diff options
author | J.T. Conklin <jtc@redback.com> | 2001-04-03 01:51:26 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@redback.com> | 2001-04-03 01:51:26 +0000 |
commit | 3c61a614721063181c181807fb1713f3f7232b1d (patch) | |
tree | bf787e9788e4fdcc4510b23d0118bef9ca8a13ad | |
parent | 0ff72b4b846708567092a37377ab121d65688457 (diff) | |
download | gdb-3c61a614721063181c181807fb1713f3f7232b1d.tar.gz |
* remote-mips.c (S_IROTH): Moved definition from here.
* gdb_stat.h (S_IROTH): to here.
-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 5308557ba8f..aa7fc73a184 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 e0c8f88a6fd..f3577f2f994 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 c923c3522e9..dfde85b3366 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 |