summaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorCharles Wilson <cygwin@cwilson.fastmail.fm>2006-02-25 04:36:39 +0000
committerCharles Wilson <cygwin@cwilson.fastmail.fm>2006-02-25 04:36:39 +0000
commitd971bd0c71dc9f496e9b2233ab6f63d5734001c4 (patch)
treefbab126dd7f4938d794158107f2fd05e6ca380f5 /gdb/source.c
parentba1c11509c41253bdc02c76619e6346a4fd653df (diff)
downloadgdb-d971bd0c71dc9f496e9b2233ab6f63d5734001c4.tar.gz
* gdb/defs.h: unconditionally include <fcntl.h>, and
ensure that O_BINARY is defined. * gdb/solib.c(solib_open): ensure solib files are opened in binary mode. * gdb/corelow.c: Remove O_BINARY macro definition. * gdb/exec.c: Remove O_BINARY macro definition * gdb/remote-rdp.c: Remove O_BINARY macro definition * gdb/source.c: Remove O_BINARY macro definition * gdb/symfile.c: Remove O_BINARY macro definition
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 3b93362b5e3..927601d3df3 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -46,9 +46,6 @@
#include "ui-out.h"
#include "readline/readline.h"
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif
#define OPEN_MODE (O_RDONLY | O_BINARY)
#define FDOPEN_MODE FOPEN_RB