mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Use a Windows specific socket error code
This commit is contained in:
parent
46694f2862
commit
596f9a4b4c
@ -62,7 +62,11 @@ check_can_bind_low_ports(void)
|
|||||||
} else if (errno == EACCES || errno == EPERM) {
|
} else if (errno == EACCES || errno == EPERM) {
|
||||||
/* Got a permission-denied error. */
|
/* Got a permission-denied error. */
|
||||||
return 0;
|
return 0;
|
||||||
|
#if defined(_WIN32)
|
||||||
|
} else if (errno == WSAEADDRINUSE) {
|
||||||
|
#else
|
||||||
} else if (errno == EADDRINUSE) {
|
} else if (errno == EADDRINUSE) {
|
||||||
|
#endif
|
||||||
/* Huh; somebody is using that port. */
|
/* Huh; somebody is using that port. */
|
||||||
} else {
|
} else {
|
||||||
perror("bind");
|
perror("bind");
|
||||||
|
Loading…
Reference in New Issue
Block a user