Browse Source

more BSD compat

master
Felix von Leitner 19 years ago
parent
commit
316a38ae42
  1. 4
      select.h2
  2. 2
      socket/socket_bind6.c

4
select.h2

@ -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

2
socket/socket_bind6.c

@ -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;
#endif
int i;
if (!ip) ip=V6any;
#ifdef LIBC_HAS_IP6
if (noipv6) {
#endif
int i;
for (i=0; i<16; i++)
if (ip[i]!=0) break;
if (i==16 || ip6_isv4mapped(ip))

Loading…
Cancel
Save