summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2005-06-27 10:52:20 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2005-06-27 10:52:20 +0000
commitade4247855998c3d344382b9bb2a13ff0c5a8921 (patch)
treeb87f1ba8281ee54dee45a167d744d0d5cb71811f /src
parente7ad8a65f1285fad97e1f283cde98eadf1d025f2 (diff)
Add checks and local definitions for all T_xxx macros, not just a few
special ones.
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/src/exim.h b/src/src/exim.h
index 6721cb609..476473395 100644
--- a/src/src/exim.h
+++ b/src/src/exim.h
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/exim.h,v 1.15 2005/05/24 10:57:10 ph10 Exp $ */
+/* $Cambridge: exim/src/src/exim.h,v 1.16 2005/06/27 10:52:20 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -279,6 +279,31 @@ header files. I don't suppose they have T_SRV either. */
#define T_SRV 33
#endif
+/* It seems that some versions of arpa/nameser.h don't define *any* of the
+T_xxx macros, which seem to be non-standard nowadays. Just to be on the safe
+side, put in definitions for all the ones that Exim uses. */
+
+#ifndef T_A
+#define T_A 1
+#endif
+
+#ifndef T_CNAME
+#define T_CNAME 5
+#endif
+
+#ifndef T_MX
+#define T_MX 15
+#endif
+
+#ifndef T_NS
+#define T_NS 2
+#endif
+
+#ifndef T_PTR
+#define T_PTR 12
+#endif
+
+
/* We define a few private types for special DNS lookups:
. T_ZNS gets the nameservers of the enclosing zone of a domain