summaryrefslogtreecommitdiff
path: root/usr.sbin/ypldap
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-02-03 08:23:47 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-02-03 08:23:47 +0000
commit79d6582906e9f255bb3e3b013b1db652bde7e4d1 (patch)
treec9892bb3aa44ecbac98f01e7e08b273ab6b46397 /usr.sbin/ypldap
parent51dc42ac86cd5bdfc25c9f16f7d5791604cb1737 (diff)
Stop assuming that in_{addr,port}_t are typedefed in <sys/types.h> and
instead pull in <netinet/in.h> or <arpa/inet.h> when those are needed. ok florian@ beck@ millert@
Diffstat (limited to 'usr.sbin/ypldap')
-rw-r--r--usr.sbin/ypldap/aldap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/aldap.c b/usr.sbin/ypldap/aldap.c
index 6f867612baa..1e8ed37067b 100644
--- a/usr.sbin/ypldap/aldap.c
+++ b/usr.sbin/ypldap/aldap.c
@@ -1,5 +1,5 @@
-/* $Id: aldap.c,v 1.34 2016/10/22 03:37:13 deraadt Exp $ */
-/* $OpenBSD: aldap.c,v 1.34 2016/10/22 03:37:13 deraadt Exp $ */
+/* $Id: aldap.c,v 1.35 2017/02/03 08:23:46 guenther Exp $ */
+/* $OpenBSD: aldap.c,v 1.35 2017/02/03 08:23:46 guenther Exp $ */
/*
* Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
@@ -18,6 +18,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>