From b144695014a33c871ad100c2b9545c10460f2458 Mon Sep 17 00:00:00 2001 From: Nhan Khong Date: Sat, 6 Jul 2019 21:24:35 +0700 Subject: [PATCH] unix: fix unused-function warning on BSD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes a warning about uv__fs_preadv() being unused on BSD. PR-URL: https://github.com/libuv/libuv/pull/2367 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Saúl Ibarra Corretgé --- src/unix/fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/fs.c b/src/unix/fs.c index 5190fd40..fc80d00d 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -292,6 +292,7 @@ static ssize_t uv__fs_open(uv_fs_t* req) { } +#if !HAVE_PREADV static ssize_t uv__fs_preadv(uv_file fd, uv_buf_t* bufs, unsigned int nbufs, @@ -338,6 +339,7 @@ static ssize_t uv__fs_preadv(uv_file fd, return result; } +#endif static ssize_t uv__fs_read(uv_fs_t* req) {