summaryrefslogtreecommitdiff
path: root/zhm/zhm.h
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-10-10 15:08:20 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-10-10 15:08:20 +0000
commiteb7353085a3e26cf06b3f9e911ff8f15e549490d (patch)
tree8dbc410f3e63212a912ee50f188069733ddc6337 /zhm/zhm.h
parent8100e17113a977b2097d84354fdd782e8e5060eb (diff)
Add process size estimation for Mac OS X on x86.
Diffstat (limited to 'zhm/zhm.h')
-rw-r--r--zhm/zhm.h6
1 files changed, 6 insertions, 0 deletions
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