Add support for other BSDs

Tested basic functionality[1] on these systems:
FreeBSD
NetBSD
DragonflyBSD

[1]: by basic functionality I mean syncing the blockchain and resolving
DNS queries.

GUI doesn't work on NetBSD due to different locations of shared
libraries which could be fixed. DragonflyBSD isn't supported by
webview-sys create so GUI doen't work there too. Also DragonflyBSD
isn't supported by `thread-priority` crate, so it is disabled in the
code.
This commit is contained in:
la-ninpre
2022-04-12 23:51:00 +03:00
parent 370db66ce5
commit e744b95a7e
2 changed files with 5 additions and 14 deletions
+2 -5
View File
@@ -52,11 +52,8 @@ open = { version = "2.1.1", optional = true }
winapi = { version = "0.3.9", features = ["impl-default", "wincon", "shellscalingapi"] }
thread-priority = "0.8.0"
[target.'cfg(target_os = "linux")'.dependencies]
thread-priority = "0.8.0"
[target.'cfg(target_os = "openbsd")'.dependencies]
thread-priority = "0.8.1"
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
thread-priority = "0.8.2"
[build-dependencies]
winres = "0.1.12"