1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: kFreeBSD portability patch
By using the POSIX sysconf(3) together with the nonstandard extension
_SC_PHYS_PAGES, the system's installed memory can be queried portably on
Linux and kFreeBSD.
Author: Jeff Epler <jepler@unpythonic.net>
Bug-Debian: https://bugs.debian.org/776814
Forwarded: http://lists.alioth.debian.org/pipermail/debian-med-packaging/2015-February/031414.html
Last-Update: Thu, 19 Feb 2015 16:07:52 +0100 (Andreas Tille <tille@debian.org>)
--- a/src/arch.cc
+++ b/src/arch.cc
@@ -60,6 +60,8 @@
#include "vsearch.h"
+#include <unistd.h>
+
const int memalignment = 16;
uint64_t arch_get_memused()
|