Merge pull request #235 from la-ninpre/master

Add OpenBSD support
This commit is contained in:
Revertron
2022-04-12 22:58:10 +02:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
+3
View File
@@ -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"
+6
View File
@@ -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) {