diff --git a/src/unix/fs.c b/src/unix/fs.c index b06f992d..cf45669c 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -271,7 +271,11 @@ static ssize_t uv__fs_read(uv_fs_t* req) { } +#if defined(__OpenBSD__) || (defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_8)) +static int uv__fs_readdir_filter(struct dirent* dent) { +#else static int uv__fs_readdir_filter(const struct dirent* dent) { +#endif return strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0; }