Browse Source

more BSD compat

master
Felix von Leitner 17 years ago
parent
commit
316a38ae42
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      select.h2
  2. +1
    -1
      socket/socket_bind6.c

+ 4
- 0
select.h2 View File

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

+ 1
- 1
socket/socket_bind6.c View File

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