Added OpenBSD support

pull/235/head
la-ninpre 2 years ago
parent dd12ddeed0
commit 370db66ce5
No known key found for this signature in database
GPG Key ID: 405C2C163EF6A2C9

@ -55,6 +55,9 @@ 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"
[build-dependencies]
winres = "0.1.12"
@ -80,4 +83,4 @@ FileDescription="Alternative Free Identity System"
webgui = ["web-view", "tinyfiledialogs", "open"]
edge = ["webgui", "web-view/edge"]
doh = ["ureq"]
default = ["webgui", "doh"]
default = ["webgui", "doh"]

@ -145,6 +145,12 @@ pub fn setup_miner_thread(cpu: u32) {
let _ = set_current_thread_priority(ThreadPriority::Min);
}
#[cfg(target_os = "openbsd")]
#[allow(unused_variables)]
pub fn setup_miner_thread(cpu: u32) {
let _ = set_current_thread_priority(ThreadPriority::Min);
}
#[cfg(target_os = "macos")]
#[allow(unused_variables)]
pub fn setup_miner_thread(cpu: u32) {

Loading…
Cancel
Save