From 4b6d3c5a28d39481d25a134446347c7bfc99f155 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 24 Jan 2017 15:28:50 +0100 Subject: [PATCH] Hopefully fix build on older GCC http://hydra.nixos.org/build/46805140 --- src/build-remote/build-remote.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index 345eacb41..1daf0b80b 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 read_conf() { +static std::vector read_conf() +{ auto conf = getEnv("NIX_REMOTE_SYSTEMS", SYSCONFDIR "/nix/machines"); auto machines = std::vector{}; @@ -108,8 +109,9 @@ static std::vector 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 << "-";