Fix Windows build.
commit5c8deef9b67f7bf983dd96164c118317422c236b
authorAlexander Færøy <ahf@torproject.org>
Fri, 5 Feb 2021 17:12:52 +0000 (5 17:12 +0000)
committerAlexander Færøy <ahf@torproject.org>
Fri, 29 Oct 2021 16:52:18 +0000 (29 16:52 +0000)
tree1a158b6bf622556c870c2e024b037f0730ce2b2c
parent92fedb9f448555abbbde6ac5c73b9de0a2ba7932
Fix Windows build.

While trying to resolve our CI issues, the Windows build broke with an
unused function error:

   src/test/test_switch_id.c:37:1: error: ‘unprivileged_port_range_start’
   defined but not used [-Werror=unused-function]

We solve this by moving the `#if !defined(_WIN32)` test above the
`unprivileged_port_range_start()` function defintion such that it is
included in its body.

This is an unreviewed commit.

See: tor#40275
src/test/test_switch_id.c