diff --git a/src/db/update/Walk.hxx b/src/db/update/Walk.hxx index cdc42f4b8..151cdf957 100644 --- a/src/db/update/Walk.hxx +++ b/src/db/update/Walk.hxx @@ -24,6 +24,8 @@ #include "Editor.hxx" #include "Compiler.h" +#include + struct StorageFileInfo; struct Directory; struct ArchivePlugin; @@ -52,7 +54,7 @@ class UpdateWalk final { * cancel as quickly as possible. Access to this flag is * unprotected. */ - volatile bool cancel; + std::atomic_bool cancel; Storage &storage;