summaryrefslogtreecommitdiffstats
path: root/tests/show-die-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/show-die-info.c')
-rw-r--r--tests/show-die-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/show-die-info.c b/tests/show-die-info.c
index 34e27a3b..1eb0bfb9 100644
--- a/tests/show-die-info.c
+++ b/tests/show-die-info.c
@@ -315,7 +315,7 @@ main (int argc, char *argv[])
for (cnt = 1; cnt < argc; ++cnt)
{
- int fd = open (argv[cnt], O_RDONLY);
+ int fd = open (argv[cnt], O_RDONLY | O_BINARY);
Dwarf *dbg;
printf ("file: %s\n", basename (argv[cnt]));