Fix issues when building against a C library other than glibc, such as Android's Bionic libc. The basename() patch isn't needed on master. A commit with a sample Android.bp file that's working against Android 11 is included for informational purposes, which I don't expect Bartosz to pull. Benjamin Li (3): tools: use getprogname() when available to remove dependency on glibc core: add missing #include for basename() build: add Android.bp to build within Android tree Android.bp | 126 +++++++++++++++++++++++++++++++++++++++++++ configure.ac | 5 ++ lib/core.c | 1 + tools/gpiodetect.c | 4 +- tools/gpiofind.c | 4 +- tools/gpioget.c | 4 +- tools/gpioinfo.c | 4 +- tools/gpiomon.c | 4 +- tools/gpioset.c | 4 +- tools/tools-common.c | 12 +++-- tools/tools-common.h | 4 +- 11 files changed, 154 insertions(+), 18 deletions(-) create mode 100644 Android.bp -- 2.25.1