--- components/metrics/drive_metrics_provider_linux.cc.orig 2023-10-19 19:58:18 UTC +++ components/metrics/drive_metrics_provider_linux.cc @@ -4,7 +4,13 @@ #include "components/metrics/drive_metrics_provider.h" +#if BUILDFLAG(IS_BSD) +#include +#define MAJOR(dev) major(dev) +#define MINOR(dev) minor(dev) +#else #include // For MAJOR()/MINOR(). +#endif #include #include