mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 14:02:42 +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
|
|
@ -2,10 +2,12 @@
|
|||
#include "pathlocks.hh"
|
||||
#include "signals.hh"
|
||||
#include "util.hh"
|
||||
#include <errhandlingapi.h>
|
||||
#include <fileapi.h>
|
||||
#include <windows.h>
|
||||
#include "windows-error.hh"
|
||||
|
||||
#ifdef WIN32
|
||||
# include <errhandlingapi.h>
|
||||
# include <fileapi.h>
|
||||
# include <windows.h>
|
||||
# include "windows-error.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
@ -154,3 +156,4 @@ FdLock::FdLock(Descriptor desc, LockType lockType, bool wait, std::string_view w
|
|||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue