Merge pull request #235 from la-ninpre/master

Add OpenBSD support
This commit is contained in:
Revertron authored and GitHub committed 2022-04-12 22:58:10 +02:00
commit e29bc482a3
2 files changed
+9

No files matched your search

+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) {