summaryrefslogtreecommitdiff
path: root/sysutils/fusefs-unionfs/files/patch-unionfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/fusefs-unionfs/files/patch-unionfs.c')
-rw-r--r--sysutils/fusefs-unionfs/files/patch-unionfs.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysutils/fusefs-unionfs/files/patch-unionfs.c b/sysutils/fusefs-unionfs/files/patch-unionfs.c
new file mode 100644
index 000000000000..e37e1aebd5ad
--- /dev/null
+++ b/sysutils/fusefs-unionfs/files/patch-unionfs.c
@@ -0,0 +1,16 @@
+--- 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);
+ }
+