Skip to content

Commit 4058102

Browse files
authored
win: add S_ISFIFO macro (#207)
Needed now that `libuv` is setting the mode correctly for named pipes. Refs: libuv/libuv#3811
1 parent 0f249ea commit 4058102

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/uv_mapping.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
2525
#endif
2626

27+
#if !defined(S_ISFIFO) && defined(S_IFMT) && defined(S_IFIFO)
28+
# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
29+
#endif
30+
2731

2832
uvwasi_errno_t uvwasi__translate_uv_error(int err) {
2933
switch (err) {

0 commit comments

Comments
 (0)