summaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-04-28 08:30:23 +0000
committerNick Clifton <nickc@redhat.com>2008-04-28 08:30:23 +0000
commitc3372e5344a641ba9409547d11e3e8651f0e8eeb (patch)
tree0a1dc7fd1f13c97d38ed1f24be2e4341965ee358 /binutils/ar.c
parent9dda65711aaffead78e9d68a9f7893152b375a67 (diff)
downloadbinutils-redhat-c3372e5344a641ba9409547d11e3e8651f0e8eeb.tar.gz
PR binutils/6449
* objdump.c (slurp_file): Open the file in binary mode. * ar.c: Remove conditional definition of O_BINARY. * bin2.c: Likewise. * rename.c: Likewise. * strings.c: Likewise. * sysdep.h: Add conditional definition of O_BINARY.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 71f4d73461..f4932219b7 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -45,12 +45,6 @@
#define EXT_NAME_LEN 6 /* Ditto for *NIX. */
#endif
-/* We need to open files in binary modes on system where that makes a
- difference. */
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif
-
/* Kludge declaration from BFD! This is ugly! FIXME! XXX */
struct ar_hdr *