aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-12-01 22:06:15 +0000
committerSergei Trofimovich <slyich@gmail.com>2021-12-01 22:08:05 +0000
commitc32a5f4d380daafc33d129a097a494e1af8d9600 (patch)
treec1047dac5a92f772a6bd4e4b067bcf3f086c3874 /src
parent782837d9345b70023c682a177c074333d1cb7baa (diff)
src/libutil/util.hh: fix build on gcc-11
Due to missing <atomic> declaration the build fails as: src/libutil/util.hh:350:24: error: no match for 'operator||' (operand types are 'std::atomic<bool>' and 'bool') 350 | if (_isInterrupted || (interruptCheck && interruptCheck())) | ~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | std::atomic<bool> bool
Diffstat (limited to 'src')
-rw-r--r--src/libutil/util.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 0bdb37a79..bc96bfed1 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -11,6 +11,7 @@
#include <unistd.h>
#include <signal.h>
+#include <atomic>
#include <functional>
#include <map>
#include <sstream>