diff --git a/include/seastar/core/std-coroutine.hh b/include/seastar/core/std-coroutine.hh index 841e854aeb6..9b4189841ea 100644 --- a/include/seastar/core/std-coroutine.hh +++ b/include/seastar/core/std-coroutine.hh @@ -21,8 +21,8 @@ #pragma once -// Clang currently only supports the TS -#if __has_include() && !defined(__clang__) +// Clang < 14 only supports the TS +#if __has_include() && (!defined(__clang__) || __clang_major__ >= 14) #include #define SEASTAR_INTERNAL_COROUTINE_NAMESPACE std #elif __has_include()