From a1231458e25a6b1d6e6a600d59ca1b252d65db1d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 16 May 2023 16:52:20 -0400 Subject: Use SYS_* instead of __NR_* --- src/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stat.c') diff --git a/src/stat.c b/src/stat.c index 7973d71..50ea345 100644 --- a/src/stat.c +++ b/src/stat.c @@ -19,7 +19,7 @@ # include #endif -#if BFS_LIBC_STATX || defined(__NR_statx) +#if BFS_LIBC_STATX || defined(SYS_statx) # define BFS_STATX true #endif @@ -141,7 +141,7 @@ static int bfs_statx(int at_fd, const char *at_path, int at_flags, unsigned int #if BFS_LIBC_STATX return statx(at_fd, at_path, at_flags, mask, buf); #else - return syscall(__NR_statx, at_fd, at_path, at_flags, mask, buf); + return syscall(SYS_statx, at_fd, at_path, at_flags, mask, buf); #endif } -- cgit v1.2.3