From eb7353085a3e26cf06b3f9e911ff8f15e549490d Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sat, 10 Oct 2009 15:08:20 +0000 Subject: Add process size estimation for Mac OS X on x86. --- zhm/zhm.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zhm/zhm.h') diff --git a/zhm/zhm.h b/zhm/zhm.h index 0dbe7e3..cefa5a4 100644 --- a/zhm/zhm.h +++ b/zhm/zhm.h @@ -80,6 +80,12 @@ extern int rexmit_times[]; #define use_etext #endif +#if defined (__i386__) && defined (__APPLE__) +/* Pick a var that tends to be near the start of data section. */ +extern char **environ; +#define adjust_size(size) size -= (uintptr_t) &environ +#endif + #ifdef _AIX #ifdef i386 #define adjust_size(size) size -= 0x400000 -- cgit v1.2.3