[tor/master] Use a Windows specific socket error code

commit 596f9a4b4cf9211827284905069166972aaf1e3b Author: cypherpunks <cypherpunks@torproject.org> Date: Wed Dec 16 22:11:20 2015 +0100 Use a Windows specific socket error code --- src/test/test_switch_id.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/test_switch_id.c b/src/test/test_switch_id.c index e956f33..9b09367 100644 --- a/src/test/test_switch_id.c +++ b/src/test/test_switch_id.c @@ -62,7 +62,11 @@ check_can_bind_low_ports(void) } else if (errno == EACCES || errno == EPERM) { /* Got a permission-denied error. */ return 0; +#if defined(_WIN32) + } else if (errno == WSAEADDRINUSE) { +#else } else if (errno == EADDRINUSE) { +#endif /* Huh; somebody is using that port. */ } else { perror("bind");
participants (1)
-
nickm@torproject.org