[gvfs/wip/lantw/fuse-define-rename-macros-when-they-are-not-defined] fuse: Define RENAME_* macros when they are not defined



commit 8b45eca75812e884b046c8fa8a6e09c915381197
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Wed Jul 10 17:10:24 2019 +0800

    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.

 client/gvfsfusedaemon.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
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))
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]