summaryrefslogtreecommitdiff
path: root/zhm/zhm.h
diff options
context:
space:
mode:
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