diff --git a/src/google/protobuf/raw_ptr.cc b/src/google/protobuf/raw_ptr.cc index cffe79c5020e..8b7ce15c8c38 100644 --- a/src/google/protobuf/raw_ptr.cc +++ b/src/google/protobuf/raw_ptr.cc @@ -7,6 +7,8 @@ #include "google/protobuf/raw_ptr.h" +#include + #include "absl/base/attributes.h" #include "absl/base/optimization.h" @@ -17,8 +19,8 @@ namespace google { namespace protobuf { namespace internal { -ABSL_CONST_INIT PROTOBUF_EXPORT - ABSL_CACHELINE_ALIGNED const char kZeroBuffer[ABSL_CACHELINE_SIZE] = {}; +ABSL_CONST_INIT PROTOBUF_EXPORT ABSL_CACHELINE_ALIGNED const char + kZeroBuffer[std::max(ABSL_CACHELINE_SIZE, 64)] = {}; } // namespace internal } // namespace protobuf