Fix issue when building against a C library without GNU extensions, such as Android's Bionic libc. 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 (2): tools: use getprogname() when available to remove dependency on glibc build: add Android.bp to build within Android tree Android.bp | 129 +++++++++++++++++++++++++++++++++++++++++++ configure.ac | 11 +++- tools/gpiodetect.c | 4 +- tools/gpioget.c | 4 +- tools/gpioinfo.c | 4 +- tools/gpiomon.c | 4 +- tools/gpionotify.c | 4 +- tools/gpioset.c | 4 +- tools/tools-common.c | 16 +++--- tools/tools-common.h | 4 +- 10 files changed, 161 insertions(+), 23 deletions(-) create mode 100644 Android.bp -- 2.25.1