diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-10 22:22:01 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-10 22:22:01 -0500 |
commit | 640fa83406bb8c08d971be68b32b7e222e92e286 (patch) | |
tree | d6151f9dea6ffd02f68acca03a2696b0dd5bc712 /src/eval.c | |
parent | e44e07a6bff0dd21a3fb08f28cd161e03360328b (diff) | |
download | bfs-640fa83406bb8c08d971be68b32b7e222e92e286.tar.xz |
Initial support for Cosmopolitan Libc
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1558,7 +1558,9 @@ static const char *dump_bftw_strategy(enum bftw_strategy strategy) { /** Check if we need to enable BFTW_BUFFER. */ static bool eval_must_buffer(const struct bfs_expr *expr) { -#if __FreeBSD__ +#if __COSMOPOLITAN__ + return true; +#elif __FreeBSD__ // FreeBSD doesn't properly handle adding/removing directory entries // during readdir() on NFS mounts. Work around it by passing BFTW_BUFFER // whenever we could be mutating the directory ourselves through -delete |