Update sysutils/dateutils to version 0.4.1
[dports.git] / net-mgmt / seafile-client / files / patch-common_obj-backend-fs.c
1 --- common/obj-backend-fs.c.orig        2015-09-21 03:42:11 UTC
2 +++ common/obj-backend-fs.c
3 @@ -101,7 +101,7 @@ obj_backend_fs_read (ObjBackend *bend,
4  static int
5  fsync_obj_contents (int fd)
6  {
7 -#ifdef __linux__
8 +#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
9      /* Some file systems may not support fsync().
10       * In this case, just skip the error.
11       */
12 @@ -153,7 +153,7 @@ fsync_obj_contents (int fd)
13  static int
14  rename_and_sync (const char *tmp_path, const char *obj_path)
15  {
16 -#ifdef __linux__
17 +#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__)
18      char *parent_dir;
19      int ret = 0;
20