diff options
author | Tor Egge <Tor.Egge@online.no> | 2021-10-31 17:47:59 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2021-10-31 17:47:59 +0100 |
commit | 71ad14edcb175c0353cc243f690c830c772c8d15 (patch) | |
tree | f84c1be5e3bd3c1cf8fdc0ae88ee6c41608cb26e /vespalib | |
parent | 728576fef4bd8ec18f4baf57f1d45bda4423b47e (diff) |
Fix compilation when using gcc 9:
- Include header file for atomic when needed.
- Use normal function template instead of abbreviated function template.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/executor/threadstackexecutor_test.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vespalib/src/tests/executor/threadstackexecutor_test.cpp b/vespalib/src/tests/executor/threadstackexecutor_test.cpp index e61dc071b62..688d98ff032 100644 --- a/vespalib/src/tests/executor/threadstackexecutor_test.cpp +++ b/vespalib/src/tests/executor/threadstackexecutor_test.cpp @@ -4,6 +4,7 @@ #include <vespa/vespalib/util/threadstackexecutor.h> #include <vespa/vespalib/util/backtrace.h> #include <vespa/vespalib/util/size_literals.h> +#include <atomic> #include <thread> using namespace vespalib; |