diff options
author | Gleb Popov <6yearold@gmail.com> | 2025-06-24 09:20:09 +0300 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-06-25 13:04:59 +0200 |
commit | 9168e3be310b9805c269bf85580e46bf30cd63b5 (patch) | |
tree | 0d6dafbda530cddc8bfe7ebd7dec138c4e39ed03 /example/memfs_ll.cc | |
parent | e9a140b8172c312981b2bb834011ef782a386504 (diff) | |
download | libfuse-9168e3be310b9805c269bf85580e46bf30cd63b5.tar.gz |
memfs_ll: Fix compiling on non-Linux OSes
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Diffstat (limited to 'example/memfs_ll.cc')
-rw-r--r-- | example/memfs_ll.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |