From: Wilfried Goesgens Date: Mon, 14 May 2012 22:03:21 +0000 (+0200) Subject: locate_host: add missing defines for openbsd X-Git-Tag: v8.11~23 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=8ea4feb1accb732d1ce7a208f8139c8ee91777dc 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 --- 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.