aboutsummaryrefslogtreecommitdiffstats
path: root/elff/elf_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'elff/elf_file.cc')
-rw-r--r--elff/elf_file.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/elff/elf_file.cc b/elff/elf_file.cc
index 5a6392c..3f1825e 100644
--- a/elff/elf_file.cc
+++ b/elff/elf_file.cc
@@ -20,6 +20,11 @@
#include "dwarf_cu.h"
#include "dwarf_utils.h"
+#include <fcntl.h>
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
/* Tags to parse when collecting info about routines. */
static const Dwarf_Tag parse_rt_tags[] = {
DW_TAG_compile_unit,