ephemeral port fixups for win32
This commit is contained in:
parent
fb1b1f8f1c
commit
fb2e9382c5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue