summaryrefslogtreecommitdiffstats
path: root/src/dir.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-18 16:16:18 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-19 15:50:45 -0400
commit1207086b5a6341412c647480eea68c870b18bba1 (patch)
tree3bdacc576075c5d7c71456c841e3e720c0eb84a4 /src/dir.h
parent29ddac2bf64bb305b285db86015abebe8a0bd8b3 (diff)
downloadbfs-1207086b5a6341412c647480eea68c870b18bba1.tar.xz
config: Check for getdents{,64}()
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dir.h b/src/dir.h
index 18d907e..19dfa98 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -14,8 +14,8 @@
* Whether the implementation uses the getdents() syscall directly, rather than
* libc's readdir().
*/
-#ifndef BFS_USE_GETDENTS
-# define BFS_USE_GETDENTS (__linux__ || __FreeBSD__)
+#if !defined(BFS_USE_GETDENTS) && (__linux__ || __FreeBSD__)
+# define BFS_USE_GETDENTS (BFS_HAS_GETDENTS || BFS_HAS_GETDENTS64 | BFS_HAS_GETDENTS64_SYSCALL)
#endif
/**