From 96c1a7d47702f6c82b96e2a0ff112b30ea85c330 Mon Sep 17 00:00:00 2001 From: Martijn Vels Date: Fri, 1 Sep 2023 11:39:53 -0700 Subject: [PATCH] Add dependency on absl::layout, and explicitly include absl layout includes This header was transitively included from (deprecated) absl cord includes. PiperOrigin-RevId: 562008066 --- src/google/protobuf/BUILD.bazel | 1 + src/google/protobuf/arena.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/src/google/protobuf/BUILD.bazel b/src/google/protobuf/BUILD.bazel index 9956816aab960..e7d24a9aef782 100644 --- a/src/google/protobuf/BUILD.bazel +++ b/src/google/protobuf/BUILD.bazel @@ -331,6 +331,7 @@ cc_library( ":arena_cleanup", ":string_block", "//src/google/protobuf/stubs:lite", + "@com_google_absl//absl/container:layout", "@com_google_absl//absl/log:absl_check", "@com_google_absl//absl/log:absl_log", "@com_google_absl//absl/synchronization", diff --git a/src/google/protobuf/arena.cc b/src/google/protobuf/arena.cc index ce9d7882a9b48..f2e97eddae1ae 100644 --- a/src/google/protobuf/arena.cc +++ b/src/google/protobuf/arena.cc @@ -40,6 +40,7 @@ #include #include "absl/base/attributes.h" +#include "absl/container/internal/layout.h" #include "absl/synchronization/mutex.h" #include "google/protobuf/arena_allocation_policy.h" #include "google/protobuf/arenaz_sampler.h"