From b3dcc1095fd45e1b675476e724ef65b38eedd4f3 Mon Sep 17 00:00:00 2001 From: beck <> Date: Wed, 1 Feb 2017 18:54:37 +0000 Subject: netinet/in.h should be included, and freebsd and some others don't have EAI_NODATA, so make this easier for people from bernard spill --- src/usr.sbin/ocspcheck/http.c | 5 +++-- src/usr.sbin/ocspcheck/ocspcheck.c | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/usr.sbin/ocspcheck/http.c b/src/usr.sbin/ocspcheck/http.c index 13b621a064..9aef1aac8d 100644 --- a/src/usr.sbin/ocspcheck/http.c +++ b/src/usr.sbin/ocspcheck/http.c @@ -1,4 +1,4 @@ -/* $Id: http.c,v 1.6 2017/01/25 13:31:01 benno Exp $ */ +/* $Id: http.c,v 1.7 2017/02/01 18:54:37 beck Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons * @@ -15,9 +15,10 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include +#include #include #include -#include #include #include diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c index a1032115e9..4bfdb82279 100644 --- a/src/usr.sbin/ocspcheck/ocspcheck.c +++ b/src/usr.sbin/ocspcheck/ocspcheck.c @@ -15,6 +15,7 @@ */ #include +#include #include #include @@ -76,7 +77,9 @@ host_dns(const char *s, struct addr vec[MAX_SERVERS_DNS]) error = getaddrinfo(s, NULL, &hints, &res0); if (error == EAI_AGAIN || +#ifdef EAI_NODATA error == EAI_NODATA || +#endif error == EAI_NONAME) return(0); -- cgit v1.2.3-55-g6feb