From: Philip Hazel Date: Mon, 27 Jun 2005 10:52:20 +0000 (+0000) Subject: Add checks and local definitions for all T_xxx macros, not just a few X-Git-Tag: exim-4_52~23 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ade4247855998c3d344382b9bb2a13ff0c5a8921;p=exim.git Add checks and local definitions for all T_xxx macros, not just a few special ones. --- diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index f75b02fbb..8628e8822 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.172 2005/06/27 10:40:14 ph10 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.173 2005/06/27 10:52:20 ph10 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -202,6 +202,12 @@ PH/29 Removed support for the Linux-libc5 build, as it is obsolete and the code in os-type was giving problems when libc.so lives in lib64, like on x86_64 Fedora Core. +PH/30 Exim's DNS code uses the original T_xxx names for DNS record times. These + aren't the modern standard, and it seems that some systems' include files + don't always have them. Exim was already checking for some of the newer + ones like T_AAAA, and defining it itself. I've added checks for all the + record types that Exim uses. + Exim version 4.51 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