summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-07-10 11:49:43 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-07-10 11:49:43 +0000
commit8a386e18f9ebed887bd888ffd5bede8694b2ef62 (patch)
tree7455b7625888c2a09dfc87b7a04f5fb4da0b22ec /sys/netinet6
parent91834dd207f4744e52810b7c592606d9b94319f2 (diff)
Instead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in the
three things that it needed from there: INET_ADDRSTRLEN, INET6_ADDRSTRLEN, and struct in_addr. Add protecting #ifndefs to netinet6?/in6?.h for those. ok deraadt@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 72fd35c3139..664bca96119 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.h,v 1.56 2012/06/26 06:39:27 guenther Exp $ */
+/* $OpenBSD: in6.h,v 1.57 2012/07/10 11:49:42 guenther Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@@ -94,7 +94,9 @@ struct in6_addr {
#define s6_addr32 __u6_addr.__u6_addr32
#endif
+#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46
+#endif
/*
* Socket address for IPv6