Fix a severe regression introduced with the "disable IPV6_V6ONLY option".

On amd64 every call to getsocktopt returns a "Bad address" SocketException.
This commit is contained in:
Alex Dupre 2011-03-17 09:17:26 +00:00
parent e4a729935e
commit a8e0201b99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271074
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= openjdk6 PORTNAME= openjdk6
PORTVERSION= b22 PORTVERSION= b22
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= java devel CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk6/promoted/${PORTVERSION}/ \ MASTER_SITES= http://download.java.net/openjdk/jdk6/promoted/${PORTVERSION}/ \
http://download.java.net/jaxp/openjdk/jdk6/:jaxp \ http://download.java.net/jaxp/openjdk/jdk6/:jaxp \

View file

@ -16643,7 +16643,7 @@
#endif #endif
- rv = getsockopt(fd, level, opt, result, len); - rv = getsockopt(fd, level, opt, result, len);
+ rv = getsockopt(fd, level, opt, result, (socklen_t)len); + rv = getsockopt(fd, level, opt, result, (socklen_t *) len);
if (rv < 0) { if (rv < 0) {
return rv; return rv;
} }