mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
mingw: Check for S_ISSOCK
This commit is contained in:
parent
bcb92a5fa0
commit
c656725a15
1 changed files with 2 additions and 0 deletions
|
@ -124,7 +124,9 @@ std::optional<SourceAccessor::Stat> PosixSourceAccessor::maybeLstat(const CanonP
|
|||
S_ISLNK(st->st_mode) ? tSymlink :
|
||||
S_ISCHR(st->st_mode) ? tChar :
|
||||
S_ISBLK(st->st_mode) ? tBlock :
|
||||
#ifdef S_ISSOCK
|
||||
S_ISSOCK(st->st_mode) ? tSocket :
|
||||
#endif
|
||||
S_ISFIFO(st->st_mode) ? tFifo :
|
||||
tUnknown,
|
||||
.fileSize = S_ISREG(st->st_mode) ? std::optional<uint64_t>(st->st_size) : std::nullopt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue