summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-03-10 06:42:27 +0000
committermike <mike@FreeBSD.org>2002-03-10 06:42:27 +0000
commitb9910027dd0cf95c5e683b596045e215cb76ba18 (patch)
tree4d519d265a17a89110120a04e0ed090d2c1c1a95 /sys/netinet/in.h
parentd16edb37a4a17619e92bf8c60ccc2a81cfad0b96 (diff)
downloadFreeBSD-src-b9910027dd0cf95c5e683b596045e215cb76ba18.zip
FreeBSD-src-b9910027dd0cf95c5e683b596045e215cb76ba18.tar.gz
o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>
for POSIX.1-2001 conformance. o Add magic to <netinet/in.h> and <netinet6/in6.h> to prevent redefining INET_ADDRSTRLEN and INET6_ADDRSTRLEN. o Add a note about missing typedefs in <arpa/inet.h>.
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 819a827..973d0af 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -306,7 +306,9 @@ struct sockaddr_in {
char sin_zero[8];
};
+#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
+#endif
/*
* Options for use with [gs]etsockopt at the IP level.
OpenPOWER on IntegriCloud