summaryrefslogtreecommitdiff
path: root/zhm
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2010-03-17 15:29:13 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2010-03-17 15:29:13 +0000
commit19e0c9e581edc42f2f9af7dab1d91c8e4687ef1c (patch)
tree1d2cf09da5f3e583d252289ac6c0a75cd863db5e /zhm
parent9a378d1a622dd7d69da60b0973f212409be53d9c (diff)
autoconf test for etext, cleanup #ifdefs for ancient stuff we don't build on
Diffstat (limited to 'zhm')
-rw-r--r--zhm/zhm.h40
1 files changed, 4 insertions, 36 deletions
diff --git a/zhm/zhm.h b/zhm/zhm.h
index cefa5a4..ad1ab5b 100644
--- a/zhm/zhm.h
+++ b/zhm/zhm.h
@@ -68,45 +68,13 @@ int queue_len __P((void));
struct sockaddr_in serv_sin;
extern int rexmit_times[];
-#ifdef vax
-#define use_etext
-#endif /* vax */
-
-#ifdef ibm032
-#define adjust_size(size) size -= 0x10000000
-#endif /* ibm032 */
-
-#if defined(sun) && (defined (SUN4_ARCH) || defined (sparc))
-#define use_etext
-#endif
-
-#if defined (__i386__) && defined (__APPLE__)
+#ifdef HAVE_ETEXT
+extern int etext;
+#define adjust_size(size) size -= (unsigned int) &etext;
+#else
/* 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
-#endif
-#ifdef _IBMR2
-#define adjust_size(size) size -= 0x20000000
-#endif
-#endif
-
-#if (defined(ultrix) || defined(sgi)) && defined(mips)
-#define adjust_size(size) size -= 0x10000000
-#endif /* (ultrix || sgi) && mips */
-
-#if defined(__alpha)
-#define adjust_size(size) size -= 0x140000000
-#endif /* alpha */
-
-#ifdef use_etext
-extern int etext;
-#define adjust_size(size) size -= (unsigned int) &etext;
-#undef use_etext
-#endif
-
#endif