1.1 --- a/tests/dstest_block_client.cc Sat Apr 03 00:02:41 2021 +0200
1.2 +++ b/tests/dstest_block_client.cc Sun Apr 04 01:19:22 2021 +0200
1.3 @@ -22,6 +22,8 @@
1.4 #include <l4/re/env.h>
1.5 #include <l4/sys/err.h>
1.6
1.7 +#include <systypes/fcntl.h>
1.8 +
1.9 #include <stdio.h>
1.10 #include <string.h>
1.11 #include <stdlib.h>
1.12 @@ -70,7 +72,7 @@
1.13 /* Invoke the open method to receive the file reference. */
1.14
1.15 file_t file;
1.16 - long err = file_open(&file, filename, server);
1.17 + long err = file_open(&file, filename, O_RDWR, server);
1.18
1.19 if (err)
1.20 {