summaryrefslogtreecommitdiff
path: root/databases/clickhouse/files/patch-src_Common_MemoryStatisticsOS.h
blob: dc2da1c5518e5666bf83ac05a9f8fce8cd452d70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/Common/MemoryStatisticsOS.h.orig	2021-03-19 11:39:14 UTC
+++ src/Common/MemoryStatisticsOS.h
@@ -1,5 +1,4 @@
 #pragma once
-#if defined(OS_LINUX)
 #include <cstdint>
 
 
@@ -35,9 +34,12 @@ class MemoryStatisticsOS (public)
     Data get() const;
 
 private:
+#ifdef OS_FREEBSD
+    struct procstat * pstat;
+#else
     int fd;
+#endif
 };
 
 }
 
-#endif