ports/databases/clickhouse/files/patch-src_Common_MemoryStatisticsOS.h
Kirill Ponomarev af7179f8cc databases/clickhouse: update to 21.3.6.55-lts
PR:		255352
Reported by:	maintainer
2021-04-25 08:48:59 +02:00

22 lines
362 B
C++

--- 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