fix a test of srfi-106's on OSX

This commit is contained in:
Yuichi Nishiwaki 2016-02-07 04:38:39 +09:00
parent 2fb0fcb8bf
commit 0d29322b64
1 changed files with 1 additions and 1 deletions

View File

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