summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/fake-rfc2553.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsd-compat/fake-rfc2553.c b/openbsd-compat/fake-rfc2553.c
index 08a7cb66c..b69f7f13f 100644
--- a/openbsd-compat/fake-rfc2553.c
+++ b/openbsd-compat/fake-rfc2553.c
@@ -38,6 +38,9 @@
38#include "includes.h" 38#include "includes.h"
39#include <string.h> 39#include <string.h>
40 40
41#include <netinet/in.h>
42#include <arpa/inet.h>
43
41#ifndef HAVE_GETNAMEINFO 44#ifndef HAVE_GETNAMEINFO
42int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, 45int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
43 size_t hostlen, char *serv, size_t servlen, int flags) 46 size_t hostlen, char *serv, size_t servlen, int flags)