diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-05-29T13·53+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-05-29T13·59+0200 |
commit | 588dad4084711e71a4dcb0758b2daf2fe03e2c8b (patch) | |
tree | de9c816d9bfa857aeeab593104c9be4414840b75 /src | |
parent | 63145be2a5ac46a283f85c835fa84bf54db59bbe (diff) |
Fix build failure on Debian/Ubuntu
http://hydra.nixos.org/build/53537463
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/logging.cc | 2 | ||||
-rw-r--r-- | src/libutil/logging.hh | 1 | ||||
-rw-r--r-- | src/nix/progress-bar.cc | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/logging.cc b/src/libutil/logging.cc index 2d0acca24216..43245f61c601 100644 --- a/src/libutil/logging.cc +++ b/src/libutil/logging.cc @@ -76,7 +76,7 @@ Logger * makeDefaultLogger() return new SimpleLogger(); } -std::atomic<uint64_t> Activity::nextId{(uint64_t) getpid() << 32}; +std::atomic<uint64_t> nextId{(uint64_t) getpid() << 32}; Activity::Activity() : id(nextId++) { }; diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh index ddfc336fee07..9ef6e3ee30e4 100644 --- a/src/libutil/logging.hh +++ b/src/libutil/logging.hh @@ -15,7 +15,6 @@ typedef enum { class Activity { - static std::atomic<uint64_t> nextId; public: typedef uint64_t t; const t id; diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index 24e435f81e8b..2ecbea8eeea8 100644 --- a/src/nix/progress-bar.cc +++ b/src/nix/progress-bar.cc @@ -24,6 +24,7 @@ private: std::string uri; uint64_t current = 0; uint64_t expected = 0; + DownloadInfo(const std::string & uri) : uri(uri) { } }; struct State |