1.1 --- a/tests/dstest_test_client.cc Sat Apr 03 00:02:41 2021 +0200
1.2 +++ b/tests/dstest_test_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 @@ -65,7 +67,7 @@
1.13
1.14 file_t file;
1.15
1.16 - long err = file_context_open(&file, context);
1.17 + long err = file_context_open(&file, O_RDONLY, context);
1.18
1.19 if (err)
1.20 {