Skip to content

Commit

Permalink
win: add S_ISFIFO macro (#207)
Browse files Browse the repository at this point in the history
Needed now that `libuv` is setting the mode correctly for named pipes.

Refs: libuv/libuv#3811
  • Loading branch information
santigimeno authored May 19, 2023
1 parent 0f249ea commit 4058102
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/uv_mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4058102

Please sign in to comment.