1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ab,v 1.2 2005/12/28 16:52:25 joerg Exp $
--- src/capture.c.orig 2004-02-14 20:14:20.000000000 +0000
+++ src/capture.c
@@ -68,6 +68,9 @@
#include "control.h"
#include "main.h"
+#ifndef HAVE_FDATASYNC
+#define fdatasync fsync
+#endif
uint16_t mousePointerBlack[] = { 0, 49152, 40960, 36864, 34816, 33792, 33280, 33024, 32896, 32832,
33728, 37376, 43264, 51456, 1152, 1152, 576, 576, 448, 0 };
@@ -643,7 +646,7 @@ TCbCaptureSHM(XtPointer xtp, XtIntervalI
(*job->close) (fp);
else if (job->flags & FLG_SYNC) {
if (job->open == (void *(*)(char *, char*))fopen)
- fdatasync(fileno(fp));
+ fdatasync(fileno((FILE *)fp));
}
/* substract the time we needed for creating and saving
|