From 8ea4feb1accb732d1ce7a208f8139c8ee91777dc Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 15 May 2012 00:03:21 +0200 Subject: [PATCH] locate_host: add missing defines for openbsd defines found over at dnssec: https://www.dnssec-tools.org/svn/dnssec-tools/tags/dnsval-1.8/include/validator/resolver.h --- citadel/locate_host.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/citadel/locate_host.c b/citadel/locate_host.c index 2a7568b23..e04ce71cb 100644 --- a/citadel/locate_host.c +++ b/citadel/locate_host.c @@ -51,6 +51,18 @@ #include #endif +/** START:some missing macros on OpenBSD 3.9 */ +#ifndef NS_CMPRSFLGS +#define NS_CMPRSFLGS 0xc0 +#endif +#if !defined(NS_MAXCDNAME) && defined (MAXCDNAME) +#define NS_MAXCDNAME MAXCDNAME +#endif +#if !defined(NS_INT16SZ) && defined(INT16SZ) +#define NS_INT16SZ INT16SZ +#define NS_INT32SZ INT32SZ +#endif +/** END:some missing macros on OpenBSD 3.9 */ /* * Given an open client socket, return the host name and IP address at the other end. -- 2.30.2