Skip to content

Commit

Permalink
Recognise OpenBSD to unbreak build
Browse files Browse the repository at this point in the history
```
  error[E0425]: cannot find value `get_shell_ffi` in this scope
    --> src/utils.rs:69:48
```

Otherwise spotifyd-0.3.5 works great on OpenBSD/amd64 7.4-current.
  • Loading branch information
klemensn committed Dec 27, 2023
1 parent c0620c5 commit bd6017b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use log::trace;
use std::env;

#[cfg(any(target_os = "freebsd", target_os = "linux"))]
#[cfg(any(target_os = "freebsd", target_os = "linux", target_os = "openbsd"))]
fn get_shell_ffi() -> Option<String> {
use libc::{geteuid, getpwuid_r};
use std::{ffi::CStr, mem, ptr};
Expand Down

0 comments on commit bd6017b

Please sign in to comment.