23 lines
776 B
Text
23 lines
776 B
Text
$NetBSD: patch-ab,v 1.2 2005/12/28 16:37:04 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
|