diff options
author | Nick Clifton <nickc@redhat.com> | 2008-04-28 08:30:23 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-04-28 08:30:23 +0000 |
commit | c3372e5344a641ba9409547d11e3e8651f0e8eeb (patch) | |
tree | 0a1dc7fd1f13c97d38ed1f24be2e4341965ee358 /binutils/sysdep.h | |
parent | 9dda65711aaffead78e9d68a9f7893152b375a67 (diff) | |
download | binutils-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/sysdep.h')
-rw-r--r-- | binutils/sysdep.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/sysdep.h b/binutils/sysdep.h index 0d7e250110..e6a89a49d3 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; |