aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-10-12 10:06:14 +0000
committerMark Kettenis <kettenis@gnu.org>2004-10-12 10:06:14 +0000
commit06c2338dfb9f8735e688cad31fb8f4e7a4edc171 (patch)
treebf6c7fce9dbaffdeee78d581b0354581be980f7b
parent1abc85973aa37dff9c0c7cac0593b14a6abd74e1 (diff)
downloadgdb-06c2338dfb9f8735e688cad31fb8f4e7a4edc171.zip
gdb-06c2338dfb9f8735e688cad31fb8f4e7a4edc171.tar.gz
gdb-06c2338dfb9f8735e688cad31fb8f4e7a4edc171.tar.bz2
* defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
"fopen-same.h". Update comment.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/defs.h13
2 files changed, 14 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a3d72d1..56246f2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-12 Mark Kettenis <kettenis@gnu.org>
+
+ * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
+ "fopen-same.h". Update comment.
+
2004-10-11 Mark Kettenis <kettenis@gnu.org>
* i386gnu-nat.c: Include "gdb_string.h".
diff --git a/gdb/defs.h b/gdb/defs.h
index d994d3d..fd96665 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -804,11 +804,16 @@ typedef struct ptid ptid_t;
#include "tm.h"
#endif
-/* If the xm.h file did not define the mode string used to open the
- files, assume that binary files are opened the same way as text
- files */
+/* Assume that fopen accepts the letter "b" in the mode string.
+ Support for is demanded by ISO C90, and should be supported on all
+ platforms that claim to have a standards conforming C library. On
+ true POSIX systems it will be ignored and have no effect. There
+ may still be systems without a standards conforming C library where
+ an ISO C90 compiler (GCC) is available. Known examples are SunOS
+ 4.x and 4.3BSD. This assumption means these systems are no longer
+ supported. */
#ifndef FOPEN_RB
-#include "fopen-same.h"
+# include "fopen-bin.h"
#endif
/* Defaults for system-wide constants (if not defined by xm.h, we fake it).