summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usr.sbin/ocspcheck/http.c5
-rw-r--r--src/usr.sbin/ocspcheck/ocspcheck.c3
2 files changed, 6 insertions, 2 deletions
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 @@
1/* $Id: http.c,v 1.6 2017/01/25 13:31:01 benno Exp $ */ 1/* $Id: http.c,v 1.7 2017/02/01 18:54:37 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> 3 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
4 * 4 *
@@ -15,9 +15,10 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18#include <arpa/inet.h>
19#include <netinet/in.h>
18#include <sys/socket.h> 20#include <sys/socket.h>
19#include <sys/param.h> 21#include <sys/param.h>
20#include <arpa/inet.h>
21 22
22#include <ctype.h> 23#include <ctype.h>
23#include <err.h> 24#include <err.h>
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 @@
15 */ 15 */
16 16
17#include <arpa/inet.h> 17#include <arpa/inet.h>
18#include <netinet/in.h>
18#include <sys/socket.h> 19#include <sys/socket.h>
19#include <sys/stat.h> 20#include <sys/stat.h>
20 21
@@ -76,7 +77,9 @@ host_dns(const char *s, struct addr vec[MAX_SERVERS_DNS])
76 error = getaddrinfo(s, NULL, &hints, &res0); 77 error = getaddrinfo(s, NULL, &hints, &res0);
77 78
78 if (error == EAI_AGAIN || 79 if (error == EAI_AGAIN ||
80#ifdef EAI_NODATA
79 error == EAI_NODATA || 81 error == EAI_NODATA ||
82#endif
80 error == EAI_NONAME) 83 error == EAI_NONAME)
81 return(0); 84 return(0);
82 85