diff options
author | Darrick J. Wong <djwong@kernel.org> | 2025-09-15 17:41:47 -0700 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-09-16 18:54:02 +0200 |
commit | 6e4557c57c4ce63de4042f77dcbf58627d13a59b (patch) | |
tree | 6f83884af230f11e23d3311fef39e76fdb249169 /include | |
parent | 939fc0dd3ed525c0be780537cfa41ffcbf98648c (diff) | |
download | libfuse-6e4557c57c4ce63de4042f77dcbf58627d13a59b.tar.gz |
libfuse: don't put HAVE_STATX in a public header
fuse.h and fuse_lowlevel.h are already forward declaring struct statx,
there is no need for HAVE_STATX anymore. HAVE_STATX also bears the
risk to conflict with an application define. Alternatively it would
have been possible to change to HAVE_FUSE_STATX.
Get rid of the conditionals in the public header files and
also remove HAVE_STATX definition from the public
libfuse_config.h.
Edit by Bernd: Commit message and removal of HAVE_STATX from
public libfuse_config.h.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse.h | 2 | ||||
-rw-r--r-- | include/fuse_lowlevel.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/include/fuse.h b/include/fuse.h index 06feacb..2091026 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -854,7 +854,6 @@ struct fuse_operations { */ off_t (*lseek) (const char *, off_t off, int whence, struct fuse_file_info *); -#ifdef HAVE_STATX /** * Get extended file attributes. * @@ -865,7 +864,6 @@ struct fuse_operations { */ int (*statx)(const char *path, int flags, int mask, struct statx *stxbuf, struct fuse_file_info *fi); -#endif }; /** Extra context that may be needed by some filesystems diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index dc4ec07..a6cce01 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -1327,7 +1327,6 @@ struct fuse_lowlevel_ops { void (*tmpfile) (fuse_req_t req, fuse_ino_t parent, mode_t mode, struct fuse_file_info *fi); -#ifdef HAVE_STATX /** * Get extended file attributes. * @@ -1343,7 +1342,6 @@ struct fuse_lowlevel_ops { */ void (*statx)(fuse_req_t req, fuse_ino_t ino, int flags, int mask, struct fuse_file_info *fi); -#endif }; /** |