diff --git a/third_party/protobuf/src/google/protobuf/repeated_ptr_field.h b/third_party/protobuf/src/google/protobuf/repeated_ptr_field.h
index 36ca1c65c9..30baf169ef 100644
--- a/third_party/protobuf/src/google/protobuf/repeated_ptr_field.h
+++ b/third_party/protobuf/src/google/protobuf/repeated_ptr_field.h
@@ -926,7 +926,7 @@ class GenericTypeHandler<std::string> {
 // RepeatedPtrField is like RepeatedField, but used for repeated strings or
 // Messages.
 template <typename Element>
-class RepeatedPtrField final : private internal::RepeatedPtrFieldBase {
+class PROTOBUF_EXPORT RepeatedPtrField final : private internal::RepeatedPtrFieldBase {
   static_assert(!std::is_const<Element>::value,
                 "We do not support const value types.");
   static_assert(!std::is_volatile<Element>::value,