--- a/file.c +++ b/file.c @@ -1900,7 +1900,7 @@ #ifdef ANDROID return(file_table[index].fdes->_file); #else - return(file_table[index].fdes->_fileno); + return(fileno(file_table[index].fdes)); #endif #endif #endif