The unix::signal was also included during Windows compilations. This of course will not work. Fix this by only including it for unix targets.
Also changed all other conditional compilation options to use cfg(unix) instead of cfg(not(windows)). The latter may also include wasm for example, or any other future target family. This way we will only match unix
The
unix::signal
was also included during Windows compilations. This of course will not work. Fix this by only including it forunix
targets.Also changed all other conditional compilation options to use
cfg(unix)
instead ofcfg(not(windows))
. The latter may also includewasm
for example, or any other future target family. This way we will only matchunix
Fixes #5052