diff options
author | Joanne Koong <joannelkoong@gmail.com> | 2024-08-23 13:11:09 -0700 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-07-16 01:46:09 +0200 |
commit | b507cbc2b1aaec1931642497edcb6723a0d24dc4 (patch) | |
tree | 9b7556bbd548d3bee38d2f624876dba977014d45 /meson.build | |
parent | 3be844147764b96496bcae6d92fa4b0e43ebff42 (diff) | |
download | libfuse-b507cbc2b1aaec1931642497edcb6723a0d24dc4.tar.gz |
Add statx support
This commit adds libfuse support for FUSE_STATX requests on
linux distributions.
Currently, statx is only supported on linux. To make the interface a
ergonomic as possible (eg using native 'struct statx' vs 'struct
fuse_statx'), this implementation gates the 'struct statx' changes
by #ifdef linux.
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 7091d5f..64ff334 100644 --- a/meson.build +++ b/meson.build @@ -126,6 +126,10 @@ private_cfg.set('HAVE_ICONV', cc.has_function('iconv', prefix: '#include <iconv.h>')) private_cfg.set('HAVE_BACKTRACE', cc.has_function('backtrace', prefix: '#include <execinfo.h>')) +public_cfg.set('HAVE_STATX', + cc.has_function('statx', prefix : '#define _GNU_SOURCE\n#include <sys/stat.h>')) +private_cfg.set('HAVE_STATX', + cc.has_function('statx', prefix : '#define _GNU_SOURCE\n#include <sys/stat.h>')) # Struct member checks private_cfg.set('HAVE_STRUCT_STAT_ST_ATIM', |