Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiling for Windows targets #5053

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

BlackDex
Copy link
Collaborator

@BlackDex BlackDex commented Oct 6, 2024

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

Fixes #5052

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`

Fixes dani-garcia#5052
@dani-garcia dani-garcia merged commit f0efec7 into dani-garcia:main Oct 6, 2024
5 checks passed
@BlackDex BlackDex deleted the fix-windows-compile branch October 6, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

signal::unix::SignalKind breaks windows build
2 participants