1 Author: Magnus Holmgren <holmgren@debian.org>
2 Description: Include arpa/nameser.h and netdb.h from spf_dns.h
3 instead of defining the constants needed unless certain HAVE_ macros are defined.
4 Updated for libspf2 1.2.8/9 by Scott Kitterman <scott@kitterman.com>
6 --- libspf2-1.2.9~/src/include/spf_dns.h 2008-10-27 12:27:14.000000000 -0400
7 +++ libspf2-1.2.9/src/include/spf_dns.h 2008-11-04 10:10:58.000000000 -0500
12 +/* The following two header files might not exist on all platforms,
13 + * but at least they exist on Debian with libc6.
15 +#include <arpa/nameser.h>
19 - * For those who don't have <arpa/nameserv.h>
20 + * Type 99 decl does not exist in Debian libc6 (not even 2.7)
23 -/* XXX This should use a more sensible define. */
24 -#if !defined( HAVE_NS_TYPE )
26 -#define ns_t_invalid 0
34 -/* #define ns_t_a6 38 */
35 -#define ns_t_any 255 /**< Wildcard match. */
40 #if ! HAVE_DECL_NS_T_SPF
44 -#if ! HAVE_DECL_NS_T_INVALID
45 -#define ns_t_invalid 0
50 - * For those who don't have <netdb.h>
53 -#if !defined(HAVE_NETDB_H) && !defined(_WIN32)
54 -#define NETDB_SUCCESS 0
55 -#define HOST_NOT_FOUND 1 /**< NXDOMAIN (authoritative answer)*/
56 -#define TRY_AGAIN 2 /**< SERVFAIL (no authoritative answer)*/
57 -#define NO_RECOVERY 3 /**< invalid/unimplmeneted query */
58 -#define NO_DATA 4 /**< host found, but no RR of req type*/
60 typedef int SPF_dns_stat_t;
62 typedef struct SPF_dns_server_struct SPF_dns_server_t;