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:
parent
96d8b54e42
commit
c338f9cc5d
16 changed files with 31 additions and 29 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue