summaryrefslogtreecommitdiffstats
path: root/tests/get-pubnames.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/get-pubnames.c')
-rw-r--r--tests/get-pubnames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/get-pubnames.c b/tests/get-pubnames.c
index 4777f49d..63fe1934 100644
--- a/tests/get-pubnames.c
+++ b/tests/get-pubnames.c
@@ -71,7 +71,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 = dwarf_begin (fd, DWARF_C_READ);
if (dbg == NULL)
{