* SUCH DAMAGE.
*/
-//%%%HWR Do we need this?
-#define BIND_8_COMPAT
-
#include "config.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <arpa/nameser.h>
+#include <arpa/nameser_compat.h>
#include <resolv.h>
#ifdef HAVE_LWRES_GETRRSETBYNAME
#include <lwres/netdb.h>
#include <strings.h>
#endif
+#include "var.h"
#include "netdb_dnssec.h"
/* XXX should it use ci_errno to hold errno instead of h_errno ? */
extern int h_errno;
-static struct certinfo *getnewci __P((int, int, int, int, int,
- unsigned char *));
+static struct certinfo *getnewci (int, int, int, int, int,
+ unsigned char *);
static struct certinfo *
getnewci(qtype, keytag, algorithm, flags, certlen, cert)
/* parse CERT RR */
eom = answer + anslen;
- hp = (HEADER *)answer;
+ hp = ALIGNED_CAST(HEADER *)answer;
qdcount = ntohs(hp->qdcount);
ancount = ntohs(hp->ancount);