Menu

#12 Fix failed to build without 'LARGEMEM'

Unstable (example)
open
nobody
None
5
2019-03-29
2019-03-29
WHR
No

Build failed with:

lmon16i.c: In function main:
lmon16i.c:6636:13: error: struct mem_stat has no member named hugetotal; did you mean hightotal?
lmon16i.c:6637:17: error: struct mem_stat has no member named hugetotal; did you mean hightotal?
lmon16i.c:6637:36: error: struct mem_stat has no member named hugefree; did you mean highfree?

Fix:

--- lmon16i.c.orig  2019-02-05 23:55:22.000000000 +0800
+++ lmon16i.c   2019-03-29 13:12:37.754943219 +0800
@@ -6628,6 +6628,7 @@
        p->mem.hugesize = 16*1024;
 */
    }
+#ifdef LARGEMEM
    if (show_large) {
        proc_read(P_MEMINFO);
        proc_mem();
@@ -6669,6 +6670,7 @@
        }
        }
    }
+#endif
    if (show_vm) {
 #define VMDELTA(variable) (p->vm.variable - q->vm.variable)
 #define VMCOUNT(variable) (p->vm.variable                 )

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.