freebsd-ports/sysutils/xvidcap/files/patch-src::capture.c
Thierry Thomas 0b2f569130 Unbreak on -CURRENT.
Reported by:	Kris.
2004-05-17 05:29:19 +00:00

14 lines
460 B
C

--- src/capture.c.orig Sat Feb 14 21:14:20 2004
+++ src/capture.c Sat May 15 23:01:57 2004
@@ -643,7 +643,11 @@
(*job->close) (fp);
else if (job->flags & FLG_SYNC) {
if (job->open == (void *(*)(char *, char*))fopen)
+#ifdef HAVE_FDATASYNC
fdatasync(fileno(fp));
+#else
+ fsync(fileno((FILE *) fp));
+#endif
}
/* substract the time we needed for creating and saving