opnsense-ports/databases/clickhouse/files/patch-src_Common_MemoryStatisticsOS.h
Franco Fichtner bb3da3b392 */*: sync with upstream
Taken from: HardenedBSD
2020-09-14 05:14:12 +02:00

22 lines
362 B
C++

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