From 9168e3be310b9805c269bf85580e46bf30cd63b5 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Tue, 24 Jun 2025 09:20:09 +0300 Subject: memfs_ll: Fix compiling on non-Linux OSes Signed-off-by: Gleb Popov <6yearold@gmail.com> --- example/memfs_ll.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/memfs_ll.cc b/example/memfs_ll.cc index 68f8e96..ad0b187 100644 --- a/example/memfs_ll.cc +++ b/example/memfs_ll.cc @@ -905,10 +905,12 @@ static void memfs_rename(fuse_req_t req, fuse_ino_t parent, const char *name, Dentry *child_dentry_copy = nullptr; Dentry *existing_dentry = nullptr; +#if defined(RENAME_EXCHANGE) && defined(RENAME_NOREPLACE) if (flags & (RENAME_EXCHANGE | RENAME_NOREPLACE)) { fuse_reply_err(req, EINVAL); return; } +#endif Inodes.lock(); -- cgit v1.2.3