diff --git a/dune/perftool/common/vectorclass.hh b/dune/perftool/common/vectorclass.hh
index a3c71167f18eb673a329b4fde6bc9da55d18af5b..8d31883eb80faebe8101f2e045d0da31b029642b 100644
--- a/dune/perftool/common/vectorclass.hh
+++ b/dune/perftool/common/vectorclass.hh
@@ -590,6 +590,7 @@ static inline Vec4d blend4d(Vec4d const & a, Vec4d const & b) {
   return r;
 }
 
+#if MAC_VECTOR_SIZE >= 512
 
 struct Vec8d
 {
@@ -1008,6 +1009,8 @@ static inline Vec8d blend8d(Vec8d const & a, Vec8d const & b) {
   return r;
 }
 
+#endif // MAC_VECTOR_SIZE >= 512
+
 #endif // ENABLE_COUNTER
 
 #endif // DUNE_PDELAB_COMMON_VECTORCLASS_HH