ksud: Fix macOS compile

This commit is contained in:
tiann
2023-02-03 14:46:48 +08:00
parent 8ee00839dc
commit 71cc166f72
6 changed files with 30 additions and 30 deletions

View File

@@ -63,12 +63,12 @@ pub fn ensure_binary<T: AsRef<Path>>(path: T, contents: &[u8]) -> Result<()> {
Ok(())
}
#[cfg(unix)]
#[cfg(target_os = "linux")]
pub fn getprop(prop: &str) -> Option<String> {
android_properties::getprop(prop).value()
}
#[cfg(not(unix))]
#[cfg(not(target_os = "linux"))]
pub fn getprop(_prop: &str) -> Option<String> {
unimplemented!()
}