1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

mingw: Check for S_ISSOCK

This commit is contained in:
Eelco Dolstra 2025-01-20 14:52:23 +01:00
parent bcb92a5fa0
commit c656725a15

View file

@ -124,7 +124,9 @@ std::optional<SourceAccessor::Stat> PosixSourceAccessor::maybeLstat(const CanonP
S_ISLNK(st->st_mode) ? tSymlink : S_ISLNK(st->st_mode) ? tSymlink :
S_ISCHR(st->st_mode) ? tChar : S_ISCHR(st->st_mode) ? tChar :
S_ISBLK(st->st_mode) ? tBlock : S_ISBLK(st->st_mode) ? tBlock :
#ifdef S_ISSOCK
S_ISSOCK(st->st_mode) ? tSocket : S_ISSOCK(st->st_mode) ? tSocket :
#endif
S_ISFIFO(st->st_mode) ? tFifo : S_ISFIFO(st->st_mode) ? tFifo :
tUnknown, tUnknown,
.fileSize = S_ISREG(st->st_mode) ? std::optional<uint64_t>(st->st_size) : std::nullopt, .fileSize = S_ISREG(st->st_mode) ? std::optional<uint64_t>(st->st_size) : std::nullopt,