Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/seafile/files/patch-common_obj-backend-fs.c
--- common/obj-backend-fs.c.orig 2015-01-28 02:14:45.000000000 -0500 | --- common/obj-backend-fs.c.orig 2015-09-21 03:42:11 UTC | ||||
+++ common/obj-backend-fs.c 2015-01-28 02:15:58.000000000 -0500 | +++ common/obj-backend-fs.c | ||||
@@ -101,7 +101,7 @@ | @@ -101,7 +101,7 @@ obj_backend_fs_read (ObjBackend *bend, | ||||
static int | static int | ||||
fsync_obj_contents (int fd) | fsync_obj_contents (int fd) | ||||
{ | { | ||||
-#ifdef __linux__ | -#ifdef __linux__ | ||||
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) | +#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) | ||||
/* Some file systems may not support fsync(). | /* Some file systems may not support fsync(). | ||||
* In this case, just skip the error. | * In this case, just skip the error. | ||||
*/ | */ | ||||
@@ -153,7 +153,7 @@ | @@ -153,7 +153,7 @@ fsync_obj_contents (int fd) | ||||
static int | static int | ||||
rename_and_sync (const char *tmp_path, const char *obj_path) | rename_and_sync (const char *tmp_path, const char *obj_path) | ||||
{ | { | ||||
-#ifdef __linux__ | -#ifdef __linux__ | ||||
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) | +#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) | ||||
char *parent_dir; | char *parent_dir; | ||||
int ret = 0; | int ret = 0; | ||||