diff options
author | mike <mike@FreeBSD.org> | 2002-03-10 06:42:27 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-03-10 06:42:27 +0000 |
commit | b9910027dd0cf95c5e683b596045e215cb76ba18 (patch) | |
tree | 4d519d265a17a89110120a04e0ed090d2c1c1a95 /sys/netinet | |
parent | d16edb37a4a17619e92bf8c60ccc2a81cfad0b96 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/netinet/in.h | 2 |
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. |