From bc254884a2a299b59e5e5ac848f90458faf3f074 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Fri, 19 May 2023 00:03:21 +0200 Subject: [PATCH] win: add S_ISFIFO macro Needed now that `libuv` is setting the mode correctly for named pipes. Refs: https://github.com/libuv/libuv/pull/3811 --- src/uv_mapping.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/uv_mapping.c b/src/uv_mapping.c index 75405c1..41e684d 100644 --- a/src/uv_mapping.c +++ b/src/uv_mapping.c @@ -24,6 +24,10 @@ # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) #endif +#if !defined(S_ISFIFO) && defined(S_IFMT) && defined(S_IFIFO) +# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) +#endif + uvwasi_errno_t uvwasi__translate_uv_error(int err) { switch (err) {