Fix bug #346: httpd broken

Fix bug introduced by myself in
commit b06e38699a
This commit is contained in:
Torsten Dreyer 2011-06-22 22:40:23 +02:00
parent 76fcad0a0b
commit 6f9a14d6c4

View File

@ -293,6 +293,12 @@ int Socket::bind ( const char* host, int port )
return result;
}
}
#if defined(WINSOCK)
else if( (result = ::bind(handle,(const sockaddr*)&addr,sizeof(IPAddress))) < 0 ) {
SG_LOG(SG_IO, SG_ALERT, "bind(" << host << ":" << port << ") failed. Errno " << errno << " (" << strerror(errno) << ")");
return result;
}
#endif
return 0;
}