diff -uNr uwsgi-2.0.25.1/core/uwsgi.c uwsgi-2.0.25.1.mod/core/uwsgi.c --- uwsgi-2.0.25.1/core/uwsgi.c 2024-04-15 22:43:55.000000000 +0300 +++ uwsgi-2.0.25.1.mod/core/uwsgi.c 2024-04-17 13:58:37.488293121 +0300 @@ -1198,6 +1198,7 @@ // This function is called from signal handler or main thread to wait worker threads. // `uwsgi.workers[uwsgi.mywid].manage_next_request` should be set to 0 to stop worker threads. static void wait_for_threads() { +#ifndef __ANDROID__ int i, ret; // This option was added because we used pthread_cancel(). @@ -1217,6 +1218,7 @@ } } } +#endif } @@ -2690,7 +2692,7 @@ #ifdef __APPLE__ uwsgi_string_new_list(&uwsgi.mime_file, "/etc/apache2/mime.types"); #else - uwsgi_string_new_list(&uwsgi.mime_file, "/etc/mime.types"); + uwsgi_string_new_list(&uwsgi.mime_file, "@TERMUX_PREFIX@/etc/mime.types"); #endif struct uwsgi_string_list *umd = uwsgi.mime_file; while (umd) {