Unconditionalize the definition of INET_ADDRSTRLEN and

INET6_ADDRSTRLEN.  Doing this helps expose bogus redefinitions in 3rd
party software.
This commit is contained in:
mike 2002-04-10 11:59:02 +00:00
parent 8928105d97
commit 4100d7ad0f
2 changed files with 0 additions and 4 deletions

View File

@ -324,9 +324,7 @@ 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.

View File

@ -132,9 +132,7 @@ struct in6_addr {
#define s6_addr32 __u6_addr.__u6_addr32
#endif
#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46
#endif
/*
* Socket address for IPv6