diff --git a/source/intercept/source/collect/db/EventsDatabaseWriter.cc b/source/intercept/source/collect/db/EventsDatabaseWriter.cc index 0403a1ae..bd30cb29 100644 --- a/source/intercept/source/collect/db/EventsDatabaseWriter.cc +++ b/source/intercept/source/collect/db/EventsDatabaseWriter.cc @@ -21,6 +21,8 @@ #include "libsys/Errors.h" #include +#include + #include #include @@ -36,7 +38,9 @@ namespace { JsonPrintOptions create_print_options() { JsonPrintOptions print_options; print_options.add_whitespace = false; - print_options.always_print_primitive_fields = true; +#if GOOGLE_PROTOBUF_VERSION < 5026000 + print_options.always_print_primitive_fields = true; +#endif print_options.preserve_proto_field_names = true; print_options.always_print_enums_as_ints = false; return print_options;