https://github.com/termux/termux-packages/issues/15852

--- a/configure.cmake
+++ b/configure.cmake
@@ -578,6 +578,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
+#include <sys/select.h>
 #endif
 int main()
 {
