fix a test of srfi-106's on OSX
This commit is contained in:
parent
2fb0fcb8bf
commit
0d29322b64
|
@ -115,7 +115,7 @@ pic_socket_make_socket(pic_state *pic)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (it->ai_flags & AI_PASSIVE) {
|
if (hints.ai_flags & AI_PASSIVE) {
|
||||||
int yes = 1;
|
int yes = 1;
|
||||||
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) == 0 &&
|
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int)) == 0 &&
|
||||||
bind(fd, it->ai_addr, it->ai_addrlen) == 0) {
|
bind(fd, it->ai_addr, it->ai_addrlen) == 0) {
|
||||||
|
|
Loading…
Reference in New Issue