Skip to content

Commit

Permalink
Exclude android from platforms supporting dlinfo (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoranaOedipus authored Dec 30, 2024
1 parent 613b3f0 commit ccec856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libwhich.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ struct vector_t dllist(void)
return dynamic_libraries;
}

#if defined(__linux__) || defined(__FreeBSD__) // Use `dlinfo` API, when supported
#if (defined(__linux__) || defined(__FreeBSD__)) && !defined(ANDROID) && !defined(__ANDROID__) // Use `dlinfo` API, when supported
const char *dlpath(void *handle, struct vector_t name)
{
struct link_map *map;
Expand Down

0 comments on commit ccec856

Please sign in to comment.