diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-07-03 15:13:58 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2020-07-03 15:13:58 +0000 |
commit | 61c827b33eb6e83a20977a661ceb5d0f00ee078e (patch) | |
tree | 8fa417fd262b07f6a38fbbb6998c4e22b82dee2d /devel/libfastcommon/files/patch-src_system__info.c | |
parent | Fix build with non-default LOCALBASE, PREFIX (diff) |
Update to 6.06
PR: 246912
Submitted by: Daniel Ylitalo <daniel@blodan.se> (maintainer)
Notes
Notes:
svn path=/head/; revision=541116
Diffstat (limited to 'devel/libfastcommon/files/patch-src_system__info.c')
-rw-r--r-- | devel/libfastcommon/files/patch-src_system__info.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/devel/libfastcommon/files/patch-src_system__info.c b/devel/libfastcommon/files/patch-src_system__info.c index ca14f0c0f457..e846e16a84c6 100644 --- a/devel/libfastcommon/files/patch-src_system__info.c +++ b/devel/libfastcommon/files/patch-src_system__info.c @@ -1,6 +1,15 @@ ---- src/system_info.c.orig 2016-09-08 07:44:31 UTC +--- src/system_info.c.orig 2019-12-25 12:35:44 UTC +++ src/system_info.c -@@ -582,6 +582,20 @@ int get_sysinfo(struct fast_sysinfo*info +@@ -62,7 +62,7 @@ int get_sys_total_mem_size(int64_t *mem_ + size_t len; + + mib[0] = CTL_HW; +- mib[1] = HW_MEMSIZE; ++ mib[1] = HW_PHYSMEM; + len = sizeof(*mem_size); + if (sysctl(mib, 2, mem_size, &len, NULL, 0) != 0) + { +@@ -583,6 +583,20 @@ int get_sysinfo(struct fast_sysinfo*info #define ki_rgid kp_eproc.e_pcred.p_rgid #define GET_SIGNAL(sig) sig |