mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
windows: fix compilation after recent changes
Specifically last few week's merges involving legacy SSH options and dynamic derivations.
This commit is contained in:
parent
1f688d62d7
commit
e0617d2545
3 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "parsed-derivations.hh"
|
#include "parsed-derivations.hh"
|
||||||
#include "user-lock.hh"
|
|
||||||
#include "store-api.hh"
|
#include "store-api.hh"
|
||||||
#include "pathlocks.hh"
|
#include "pathlocks.hh"
|
||||||
#include "goal.hh"
|
#include "goal.hh"
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
#include "substitution-goal.hh"
|
#include "substitution-goal.hh"
|
||||||
#include "drv-output-substitution-goal.hh"
|
#include "drv-output-substitution-goal.hh"
|
||||||
#include "derivation-goal.hh"
|
#include "derivation-goal.hh"
|
||||||
|
#include "derivation-creation-and-realisation-goal.hh"
|
||||||
#ifndef _WIN32 // TODO Enable building on Windows
|
#ifndef _WIN32 // TODO Enable building on Windows
|
||||||
# include "derivation-creation-and-realisation-goal.hh"
|
|
||||||
# include "local-derivation-goal.hh"
|
# include "local-derivation-goal.hh"
|
||||||
# include "hook-instance.hh"
|
# include "hook-instance.hh"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -367,7 +367,12 @@ unsigned int LegacySSHStore::getProtocol()
|
||||||
pid_t LegacySSHStore::getConnectionPid()
|
pid_t LegacySSHStore::getConnectionPid()
|
||||||
{
|
{
|
||||||
auto conn(connections->get());
|
auto conn(connections->get());
|
||||||
|
#ifndef _WIN32
|
||||||
return conn->sshConn->sshPid;
|
return conn->sshConn->sshPid;
|
||||||
|
#else
|
||||||
|
// TODO: Implement
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue