summaryrefslogtreecommitdiffstats
path: root/src/stat.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-06 10:40:33 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-06 16:37:14 -0500
commit9f6f391358e3d8f66ebd750250479bebebe4d0d4 (patch)
treeb954d8cdb10e46ff68a39b6c829ab94161994f2a /src/stat.c
parent2724dfbd17552f892a0d8b39b96cbe9e49d66fdb (diff)
downloadbfs-9f6f391358e3d8f66ebd750250479bebebe4d0d4.tar.xz
util: Use fewer BFS_*() wrappers for feature testing
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stat.c b/src/stat.c
index b172780..ab3282a 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -156,7 +156,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_FEATURE(memory_sanitizer, false)
+#if __has_feature(memory_sanitizer)
// -fsanitize=memory doesn't know about statx(), so tell it the memory
// got initialized
memset(buf, 0, sizeof(*buf));
@@ -310,7 +310,7 @@ int bfs_stat(int at_fd, const char *at_path, enum bfs_stat_flags flags, struct b
at_flags |= AT_SYMLINK_NOFOLLOW;
}
-#if defined(AT_NO_AUTOMOUNT) && (!__GNU__ || BFS_GLIBC_PREREQ(2, 35))
+#if defined(AT_NO_AUTOMOUNT) && (!__GNU__ || __GLIBC_PREREQ(2, 35))
at_flags |= AT_NO_AUTOMOUNT;
#endif