ephemeral port fixups for win32

This commit is contained in:
Ron Pedde 2006-05-24 05:04:44 +00:00
parent fb1b1f8f1c
commit fb2e9382c5
2 changed files with 2 additions and 1 deletions

View File

@ -346,7 +346,7 @@ int os_opensocket(unsigned short port) {
(listen(sock, MAXBACKLOG) == -1)) {
error = errno;
while ((closesocket(sock) == SOCKET_ERROR) && (WSAGetLastError() == WSAEINTR));
errno = EINVAL; /* should be addrinuse or somethign */
errno = WSAGetLastError();
return -1;
}

View File

@ -85,6 +85,7 @@
#define MAX_NAME_LEN _MAX_PATH
#define ETIME 101
#define PATH_MAX 512 /* it's clearly not _MAX_PATH... other projects seem to use 512 */
#define EADDRINUSE WSAEADDRINUSE
#define HOST "unknown-windows-ick"
#define SERVICENAME "Firefly Media Server"