diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-01-24T14·28+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-01-24T14·28+0100 |
commit | 4b6d3c5a28d39481d25a134446347c7bfc99f155 (patch) | |
tree | 60268226226dddfc9feb398bf13e282cbd0077fb /src/build-remote | |
parent | 19ce732a13bf7d74b7b95ae17fa92a11e1f99a01 (diff) |
Hopefully fix build on older GCC
http://hydra.nixos.org/build/46805140
Diffstat (limited to 'src/build-remote')
-rw-r--r-- | src/build-remote/build-remote.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index 345eacb4147c..1daf0b80ba70 100644 --- a/src/build-remote/build-remote.cc +++ b/src/build-remote/build-remote.cc @@ -68,7 +68,8 @@ public: enabled{true} {}; };; -static std::vector<machine> read_conf() { +static std::vector<machine> read_conf() +{ auto conf = getEnv("NIX_REMOTE_SYSTEMS", SYSCONFDIR "/nix/machines"); auto machines = std::vector<machine>{}; @@ -108,8 +109,9 @@ static std::vector<machine> read_conf() { static string currentLoad; -static int openSlotLock(const machine & m, unsigned long long slot) { - auto fn_stream = std::stringstream(currentLoad, std::ios_base::ate | std::ios_base::out); +static int openSlotLock(const machine & m, unsigned long long slot) +{ + std::ostringstream fn_stream(currentLoad, std::ios_base::ate | std::ios_base::out); fn_stream << "/"; for (auto t : m.systemTypes) { fn_stream << t << "-"; |