Skip to content

Commit b8eb4ea

Browse files
authored
fix: remove Netlink error variant for Android (#17)
This fixes compilation of Delta Chat in debug mode for Android 5 (API level 21) using NDK 27. Without this change symbols like `process_vm_writev` which are not actually used are pulled in and break linking step. They are only optimized out in release mode. See <chatmail/core#6687> for details.
1 parent 5bc90c9 commit b8eb4ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

netwatch/src/interfaces/linux.rs

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub enum Error {
2525
MissingDestinationField,
2626
#[error("mask field is missing")]
2727
MissingMaskField,
28+
#[cfg(not(target_os = "android"))]
2829
#[error("netlink")]
2930
Netlink(#[from] rtnetlink::Error),
3031
}

0 commit comments

Comments
 (0)