aboutsummaryrefslogtreecommitdiff
path: root/binutils/sysdep.h
diff options
context:
space:
mode:
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;