-
-
Notifications
You must be signed in to change notification settings - Fork 390
Open
Labels
Description
i don't think sysinfo can really solve this problem, so i'm opening this more as a documentation for a problem and its workaround.
Since #1543, sysinfo links to setpwent, getpwent and endpwent. On Android, these functions only exists starting with SDK 26 (Android 8.0). Trying to load a rust dynamic library depending on sysinfo on Android 7.1 fails with a UnsatisfiedLinkError exception.
Calls and extern declarations of the problematic function can be entirely removed by not building with the feature user (which is a default feature, but sounds like its rarely needed on android)