summaryrefslogtreecommitdiff
path: root/databases/clickhouse/files/patch-src_Common_MemoryStatisticsOS.h
blob: 053ce988d5698e8193908a8c6e84630c0593738f (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	2020-08-31 16:22:57 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