diff --git a/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx b/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx
index bddcbdf3bd687bee41dcfcde4b5840c84c3c8016..23a29511087dfbcffaf695a533553b8869e8bd32 100644
--- a/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx
+++ b/Control/AthenaServices/src/DelayedConditionsCleanerSvc.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 /*
  */
@@ -18,7 +18,6 @@
 #include "CxxUtils/StrFormat.h"
 #include "GaudiKernel/EventContext.h"
 #include "GaudiKernel/ServiceHandle.h"
-#include "tbb/task.h"
 #include <algorithm>
 
 
@@ -32,6 +31,11 @@
 #define USE_ASYNC_TASK 0
 
 
+#if USE_ASYNC_TASK
+#include "tbb/task.h"
+#endif
+
+
 namespace Athena {