diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-18 17:30:08 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-19 15:50:45 -0400 |
commit | d7130b3eee3e59f2e5475bbac5695cee54310c20 (patch) | |
tree | 07889c253703bf3994af630bbbe9c5ad81e8ca80 /src/stat.c | |
parent | 2d4ff1dcd044c09dd6368b6726d53b4f3afcd546 (diff) | |
download | bfs-d7130b3eee3e59f2e5475bbac5695cee54310c20.tar.xz |
config: Check for statx()
Diffstat (limited to 'src/stat.c')
-rw-r--r-- | src/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ #include <sys/stat.h> #include <sys/types.h> -#if BFS_USE_STATX && !BFS_HAS_LIBC_STATX +#if BFS_USE_STATX && !BFS_HAS_STATX # include <linux/stat.h> # include <sys/syscall.h> # include <unistd.h> @@ -137,7 +137,7 @@ static int bfs_stat_impl(int at_fd, const char *at_path, int at_flags, struct bf * Wrapper for the statx() system call, which had no glibc wrapper prior to 2.28. */ static int bfs_statx(int at_fd, const char *at_path, int at_flags, unsigned int mask, struct statx *buf) { -#if BFS_HAS_LIBC_STATX +#if BFS_HAS_STATX int ret = statx(at_fd, at_path, at_flags, mask, buf); #else int ret = syscall(SYS_statx, at_fd, at_path, at_flags, mask, buf); |