summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2019-07-10 17:10:24 +0800
committerTing-Wei Lan <lantw@src.gnome.org>2019-07-10 17:19:20 +0800
commit8b45eca75812e884b046c8fa8a6e09c915381197 (patch)
treeeba33ff8787cca818f803522451c89e20f177cb5 /client
parent212f531ee73686cde7f1cbf93e45f961845ac5eb (diff)
downloadgvfs-8b45eca75812e884b046c8fa8a6e09c915381197.tar.gz
fuse: Define RENAME_* macros when they are not defined
These macros exist in Linux headers, but they don't exist on FreeBSD. Since fuse library always uses the same values regardless of the platform, we just define them ourselves when they aren't defined.
Diffstat (limited to 'client')
-rw-r--r--client/gvfsfusedaemon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c
index e32f8dac..6961d0a1 100644
--- a/client/gvfsfusedaemon.c
+++ b/client/gvfsfusedaemon.c
@@ -48,6 +48,14 @@
#include <fuse.h>
#include <fuse_lowlevel.h>
+#ifndef RENAME_NOREPLACE
+#define RENAME_NOREPLACE (1 << 0)
+#endif
+
+#ifndef RENAME_EXCHANGE
+#define RENAME_EXCHANGE (1 << 1)
+#endif
+
#define GET_FILE_HANDLE(fi) ((gpointer) (fi)->fh)
#define SET_FILE_HANDLE(fi, fh) ((fi)->fh = (guint64) (fh))