diff options
| author | Ulf Hermann <[email protected]> | 2017-05-04 12:07:54 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-05-08 09:36:02 +0000 |
| commit | 0cfab8d6e47c165ee02d027c11b9a11c726516fa (patch) | |
| tree | 07868d226de62c4f9fd80ddb7882fe19151445b0 /tests/get-pubnames.c | |
| parent | 8ac52d75d47da355c4ace3224161de097db3e8d9 (diff) | |
Open files in O_BINARY
If O_BINARY is not defined, define it to 0, so that the change has no
effect then. Some systems have separate binary and text modes for files,
and we don't want the text mode to be used.
Change-Id: If7efb5bd448c2a1c7d1eb5dab276849b1b15a3ce
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests/get-pubnames.c')
| -rw-r--r-- | tests/get-pubnames.c | 2 |
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) { |
