@ -6,6 +6,10 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/select.h>
/* braindead BSD uses bzero in FD_ZERO but doesn't #include string.h */
#include <string.h>
extern int select();
#endif
@ -12,13 +12,13 @@ int socket_bind6(int s,const char ip[16],uint16 port,uint32 scope_id)
#ifdef LIBC_HAS_IP6
struct sockaddr_in6 sa;
int i;
if (!ip) ip=V6any;
if (noipv6) {
for (i=0; i<16; i++)
if (ip[i]!=0) break;
if (i==16 || ip6_isv4mapped(ip))