aboutsummaryrefslogtreecommitdiff
path: root/binutils/sysdep.h
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
commit417ed8af836c10ff5c0cbcdc4c011f5024a7269b (patch)
treee8226b5010a9af926802fd3a80993c68c852c791 /binutils/sysdep.h
parent03ffc2d0a62908f72e010495ebd7f5a7efe08e3f (diff)
downloadgdb-417ed8af836c10ff5c0cbcdc4c011f5024a7269b.zip
gdb-417ed8af836c10ff5c0cbcdc4c011f5024a7269b.tar.gz
gdb-417ed8af836c10ff5c0cbcdc4c011f5024a7269b.tar.bz2
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/sysdep.h')
-rw-r--r--binutils/sysdep.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/sysdep.h b/binutils/sysdep.h
index 0d7e250..e6a89a4 100644
--- a/binutils/sysdep.h
+++ b/binutils/sysdep.h
@@ -36,6 +36,14 @@
#include "fopen-same.h"
#endif
+#ifndef O_BINARY
+#ifdef _O_BINARY
+#define O_BINARY _O_BINARY
+#else
+#define O_BINARY 0
+#endif
+#endif
+
#include <errno.h>
#ifndef errno
extern int errno;