1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-21 16:31:07 +01:00

Fix mingw build

This commit is contained in:
Eelco Dolstra 2025-12-03 19:46:56 +01:00
parent 96d8b54e42
commit c338f9cc5d
16 changed files with 31 additions and 29 deletions

View file

@ -207,7 +207,8 @@ void FdSource::restart()
throw Error("can't seek to the start of a file");
buffer.reset();
read = bufPosOut = bufPosOut = 0;
if (lseek(fd, 0, SEEK_SET) == -1)
int fd_ = fromDescriptorReadOnly(fd);
if (lseek(fd_, 0, SEEK_SET) == -1)
throw SysError("seeking to the start of a file");
}