blob: cdcf556242e01704c499c78d1d69e9aec4efd36d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- components/metrics/drive_metrics_provider_linux.cc.orig 2023-09-17 07:59:53 UTC
+++ components/metrics/drive_metrics_provider_linux.cc
@@ -4,7 +4,13 @@
#include "components/metrics/drive_metrics_provider.h"
+#if BUILDFLAG(IS_BSD)
+#include <sys/types.h>
+#define MAJOR(dev) major(dev)
+#define MINOR(dev) minor(dev)
+#else
#include <linux/kdev_t.h> // For MAJOR()/MINOR().
+#endif
#include <sys/stat.h>
#include <string>
|