mirror of
https://github.com/NixOS/nix.git
synced 2025-12-07 09:31:01 +01:00
libutil/windows: only define headers/code if we are actually on windows
all those includes otherwise break linters.
This commit is contained in:
parent
b9bbdbeb0b
commit
eda331e53f
13 changed files with 43 additions and 12 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#include "windows-async-pipe.hh"
|
||||
#include "windows-error.hh"
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
namespace nix::windows {
|
||||
|
||||
void AsyncPipe::createAsyncPipe(HANDLE iocp)
|
||||
|
|
@ -47,3 +49,5 @@ void AsyncPipe::close()
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue