summaryrefslogtreecommitdiffstats
path: root/tests/next-files.c
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2018-07-19 18:36:12 +0200
committerUlf Hermann <[email protected]>2018-07-20 14:45:13 +0000
commit4ef620c1b74d7442c43ddb03da563639d923f0d2 (patch)
tree9d427ff9d1d833c11b4409fdac88bab206119d06 /tests/next-files.c
parent6166020e5f1acc87c3f00f0d2f15f073971be545 (diff)
Add O_BINARY to new open() calls
Windows needs that if you're not reading text. Change-Id: I923782f2c47ef16765f52d6a435f69cb33f50dfd Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests/next-files.c')
-rw-r--r--tests/next-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/next-files.c b/tests/next-files.c
index 9de5c8b0..b8e33d97 100644
--- a/tests/next-files.c
+++ b/tests/next-files.c
@@ -35,7 +35,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)