--- socket_tcp6.c~ Sat Apr 26 20:24:23 2003 +++ socket_tcp6.c Sat Apr 26 20:31:05 2003 @@ -21,7 +21,7 @@ if (noipv6) goto compat; s = socket(PF_INET6,SOCK_STREAM,0); if (s == -1) { - if (errno == EINVAL || errno == EAFNOSUPPORT) { + if (errno == EINVAL || errno == EAFNOSUPPORT || errno == EPROTONOSUPPORT) { compat: s=socket(AF_INET,SOCK_STREAM,0); noipv6=1; --- socket_udp6.c~ Sat Apr 26 20:24:23 2003 +++ socket_udp6.c Sat Apr 26 20:31:16 2003 @@ -21,7 +21,7 @@ if (noipv6) goto compat; s = socket(PF_INET6,SOCK_DGRAM,0); if (s == -1) { - if (errno == EINVAL || errno == EAFNOSUPPORT) { + if (errno == EINVAL || errno == EAFNOSUPPORT || errno == EPROTONOSUPPORT) { compat: s=socket(AF_INET,SOCK_DGRAM,0); noipv6=1;