Hello, I noticed a bit of an issue with Gnulib and Android when trying to compile nano on Termux.
Android, and by extension, Termux, is missing pthread_cancel, pthread_testcancel, pthread_setcancelstate, and pthread_setcanceltype.
This causes, for example, regexec.c, to fail to build on Termux without using the bthread polyfill.
bthread provides <bthread.h> with -lbthread.