ports/sysutils/fusefs-unionfs/files/patch-unionfs.c
Cheng-Lung Sung 0a5d49084a Add fusefs-unionfs 0.14, FUSE based implementation of the well-known
unionfs.

PR:		ports/100382
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
2006-07-17 03:50:17 +00:00

16 lines
321 B
C

--- unionfs.c.orig Sun Jul 16 19:02:07 2006
+++ unionfs.c Sun Jul 16 19:05:45 2006
@@ -189,9 +189,13 @@
if (stats_enabled && strcmp(path, STATS_FILENAME) == 0) return 0;
int res;
+#if FUSE_USE_VERSION >= 26
if (isdatasync) {
res = fdatasync(fi->fh);
} else {
+#else
+ {
+#endif
res = fsync(fi->fh);
}