blob: 17187fe3c316d5a9b79b24dc2f2266e05c84e879 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- vtest/vtest_renderer.c.orig 2020-05-16 19:25:05 UTC
+++ vtest/vtest_renderer.c
@@ -35,7 +35,9 @@
#include <sys/uio.h>
#include <sys/socket.h>
#include <sys/mman.h>
+#include <sys/stat.h>
+
#include "vtest.h"
#include "vtest_shm.h"
#include "vtest_protocol.h"
@@ -158,7 +160,7 @@ int vtest_block_read(struct vtest_input *input, void *
if (getenv("VTEST_SAVE")) {
if (savefd == -1) {
savefd = open(getenv("VTEST_SAVE"),
- O_CLOEXEC|O_CREAT|O_WRONLY|O_TRUNC|O_DSYNC, S_IRUSR|S_IWUSR);
+ O_CLOEXEC|O_CREAT|O_WRONLY|O_TRUNC|O_SYNC, S_IRUSR|S_IWUSR);
if (savefd == -1) {
perror("error opening save file");
exit(1);
|