summaryrefslogtreecommitdiffstats
path: root/tests/rdwrmmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rdwrmmap.c')
-rw-r--r--tests/rdwrmmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rdwrmmap.c b/tests/rdwrmmap.c
index 6f027dfe..1a968ebf 100644
--- a/tests/rdwrmmap.c
+++ b/tests/rdwrmmap.c
@@ -28,7 +28,7 @@
int
main (int argc __attribute__ ((unused)), char *argv[])
{
- int fd = open (argv[1], O_RDWR);
+ int fd = open (argv[1], O_RDWR | O_BINARY);
if (fd < 0)
error (2, errno, "open: %s", argv[1]);