aboutsummaryrefslogtreecommitdiff
path: root/osdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep.c')
-rw-r--r--osdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep.c b/osdep.c
index 46434af605..ae7e3fb8ca 100644
--- a/osdep.c
+++ b/osdep.c
@@ -98,6 +98,7 @@ static void *kqemu_vmalloc(size_t size)
int64_t free_space;
int ram_mb;
+ extern int ram_size;
free_space = (int64_t)stfs.f_bavail * stfs.f_bsize;
if ((ram_size + 8192 * 1024) >= free_space) {
ram_mb = (ram_size / (1024 * 1024));