summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-16 16:52:20 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-16 16:52:20 -0400
commita1231458e25a6b1d6e6a600d59ca1b252d65db1d (patch)
treeeb610856411cac63496798533a152fe50fe3c5a9 /src
parentca8274a20d4c50706f2d40bfc58cba09a9a5c713 (diff)
downloadbfs-a1231458e25a6b1d6e6a600d59ca1b252d65db1d.tar.xz
Use SYS_* instead of __NR_*
Diffstat (limited to 'src')
-rw-r--r--src/dir.c2
-rw-r--r--src/stat.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dir.c b/src/dir.c
index 30db5df..6739f10 100644
--- a/src/dir.c
+++ b/src/dir.c
@@ -32,7 +32,7 @@ static ssize_t bfs_getdents(int fd, void *buf, size_t size) {
#endif
#if __linux__ && __GLIBC__ && !__GLIBC_PREREQ(2, 30)
- ssize_t ret = syscall(__NR_getdents64, fd, buf, size);
+ ssize_t ret = syscall(SYS_getdents64, fd, buf, size);
#elif __linux__
ssize_t ret = getdents64(fd, buf, size);
#else
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 <unistd.h>
#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
}