diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-14 08:48:15 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-14 08:48:15 -0400 |
commit | 287c2c72afeb8fbf017cd62cc100b2d05dca0fae (patch) | |
tree | 26e8462acf7b6540a4d404b0bff8c47ba34c7588 /src/dir.c | |
parent | 5f707624a109ba72b90405205bd1c2e975bc0e7c (diff) | |
download | bfs-287c2c72afeb8fbf017cd62cc100b2d05dca0fae.tar.xz |
dir: Fix Android build
Android doesn't provide a getdents() wrapper, so use the syscall.
Diffstat (limited to 'src/dir.c')
-rw-r--r-- | src/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ static ssize_t bfs_getdents(int fd, void *buf, size_t size) { sanitize_uninit(buf, size); -#if __linux__ && __GLIBC__ && !__GLIBC_PREREQ(2, 30) +#if (__linux__ && __GLIBC__ && !__GLIBC_PREREQ(2, 30)) || __ANDROID__ ssize_t ret = syscall(SYS_getdents64, fd, buf, size); #elif __linux__ ssize_t ret = getdents64(fd, buf, size); |