summaryrefslogtreecommitdiff
path: root/filesystems/fuse-unionfs/patches/patch-aa
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2010-02-02 10:45:17 +0000
committerjmmv <jmmv@pkgsrc.org>2010-02-02 10:45:17 +0000
commitd50404ce06cb95bbd593c9f3079a53d9b84f7210 (patch)
tree41ec3aa37f92922b9f7e8c5465e184769b8590f5 /filesystems/fuse-unionfs/patches/patch-aa
parent4f3a1c44deb5f0d66ee64256f5a7a3da67141caa (diff)
downloadpkgsrc-d50404ce06cb95bbd593c9f3079a53d9b84f7210.tar.gz
Fix build in OS X.
Diffstat (limited to 'filesystems/fuse-unionfs/patches/patch-aa')
-rw-r--r--filesystems/fuse-unionfs/patches/patch-aa17
1 files changed, 13 insertions, 4 deletions
diff --git a/filesystems/fuse-unionfs/patches/patch-aa b/filesystems/fuse-unionfs/patches/patch-aa
index c9336d6dbca..eed19b412a5 100644
--- a/filesystems/fuse-unionfs/patches/patch-aa
+++ b/filesystems/fuse-unionfs/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2009/08/03 13:57:14 joerg Exp $
+$NetBSD: patch-aa,v 1.3 2010/02/02 10:45:17 jmmv Exp $
---- unionfs.c 2007/03/10 00:31:50 1.1
-+++ unionfs.c 2007/03/10 00:33:02
-@@ -10,6 +10,7 @@
+--- unionfs.c.orig 2007-02-09 16:17:37.000000000 +0000
++++ unionfs.c
+@@ -10,6 +10,7 @@ This is offered under a BSD-style licens
#endif
#include <fuse.h>
@@ -10,3 +10,12 @@ $NetBSD: patch-aa,v 1.2 2009/08/03 13:57:14 joerg Exp $
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+@@ -192,7 +193,7 @@ static int unionfs_fsync(const char *pat
+
+ int res;
+ if (isdatasync) {
+-#ifdef _POSIX_SYNCHRONIZED_IO
++#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO != -1
+ res = fdatasync(fi->fh);
+ #else
+ res = fsync(fi->fh);