diff --git a/stdlib/public/Cxx/libstdcxx/libstdcxx.h b/stdlib/public/Cxx/libstdcxx/libstdcxx.h index 47b330ddaf518..453f3842718f2 100644 --- a/stdlib/public/Cxx/libstdcxx/libstdcxx.h +++ b/stdlib/public/Cxx/libstdcxx/libstdcxx.h @@ -1,7 +1,9 @@ +#include "cstddef" + // C++17 and newer: // includes tbb headers, which might not be installed. // Only include if tbb is installed. -#if __has_include("execution") && __has_include() +#if __has_include("execution") && __has_include() && (!defined(_GLIBCXX_RELEASE) || (_GLIBCXX_RELEASE < 11)) #include "execution" #endif