]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
authorMark Kettenis <kettenis@gnu.org>
Tue, 12 Oct 2004 10:06:14 +0000 (10:06 +0000)
committerMark Kettenis <kettenis@gnu.org>
Tue, 12 Oct 2004 10:06:14 +0000 (10:06 +0000)
"fopen-same.h".  Update comment.

gdb/ChangeLog
gdb/defs.h

index a3d72d1160115db5ddd4554950b61c1b155e94fb..56246f2d564d445258e5eaa44500c71733a6d21d 100644 (file)
@@ -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".
index d994d3da500283c240c65051acee7ce074bfdb1e..fd96665d44b7c099059b411bb4e96e0e10eccd1a 100644 (file)
@@ -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).