# HG changeset patch # User Eli Zaretskii # Date 1238838132 0 # Node ID a722c792ebd7204d4fd89fb8bf76b5048530908b # Parent 755512b49931c78d3a121e94edf5f0fe3893fccf (system_process_attributes) [SYSTEM_MALLOC]: Don't call ret_lim_data. (Bug#2867) diff -r 755512b49931 -r a722c792ebd7 src/dosfns.c --- a/src/dosfns.c Sat Apr 04 01:52:29 2009 +0000 +++ b/src/dosfns.c Sat Apr 04 09:42:12 2009 +0000 @@ -571,7 +571,9 @@ int i; Lisp_Object cmd_str, decoded_cmd, tem; double pmem; +#ifndef SYSTEM_MALLOC extern unsigned long ret_lim_data (); +#endif uid = getuid (); attrs = Fcons (Fcons (Qeuid, make_fixnum_or_float (uid)), attrs); @@ -604,8 +606,12 @@ make_fixnum_or_float ((unsigned long)sbrk(0)/1024)), attrs); attrs = Fcons (Fcons (Qetime, tem), attrs); +#ifndef SYSTEM_MALLOC + /* ret_lim_data is on vm-limit.c, which is not compiled in under + SYSTEM_MALLOC. */ pmem = (double)((unsigned long) sbrk (0)) / ret_lim_data () * 100.0; if (pmem > 100) +#endif pmem = 100; attrs = Fcons (Fcons (Qpmem, make_float (pmem)), attrs); /* Pass 1: Count how much storage we need. */