aboutsummaryrefslogtreecommitdiff
path: root/audio/spotifyd/files/patch-src_utils.rs
blob: e3cad7655be5b8d60c5e92bfd61849fe112dbc6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/utils.rs.orig	2021-02-09 22:43:15 UTC
+++ src/utils.rs
@@ -3,7 +3,7 @@
 #[cfg(target_os = "macos")]
 use whoami;
 
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "freebsd", target_os = "linux"))]
 fn get_shell_ffi() -> Option<String> {
     use libc::{geteuid, getpwuid_r};
     use std::{ffi::CStr, mem, ptr};