diff options
Diffstat (limited to 'procps/free.c')
-rw-r--r-- | procps/free.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/procps/free.c b/procps/free.c index d0c849b79..90b4af702 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -77,6 +77,7 @@ static const char *scale(struct globals *g, unsigned long d) | |||
77 | return make_human_readable_str(d, g->mem_unit, G_unit); | 77 | return make_human_readable_str(d, g->mem_unit, G_unit); |
78 | } | 78 | } |
79 | 79 | ||
80 | #if !ENABLE_PLATFORM_MINGW32 | ||
80 | /* NOINLINE reduces main() stack usage, which makes code smaller (on x86 at least) */ | 81 | /* NOINLINE reduces main() stack usage, which makes code smaller (on x86 at least) */ |
81 | static NOINLINE unsigned int parse_meminfo(struct globals *g) | 82 | static NOINLINE unsigned int parse_meminfo(struct globals *g) |
82 | { | 83 | { |
@@ -103,6 +104,14 @@ static NOINLINE unsigned int parse_meminfo(struct globals *g) | |||
103 | 104 | ||
104 | return seen_cached_and_available_and_reclaimable == 0; | 105 | return seen_cached_and_available_and_reclaimable == 0; |
105 | } | 106 | } |
107 | #else | ||
108 | static unsigned int parse_meminfo(struct globals *g) | ||
109 | { | ||
110 | g->cached_kb = g->available_kb = g->reclaimable_kb = 0; | ||
111 | |||
112 | return 1; | ||
113 | } | ||
114 | #endif | ||
106 | 115 | ||
107 | int free_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 116 | int free_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
108 | int free_main(int argc UNUSED_PARAM, char **argv IF_NOT_DESKTOP(UNUSED_PARAM)) | 117 | int free_main(int argc UNUSED_PARAM, char **argv IF_NOT_DESKTOP(UNUSED_PARAM)) |