=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2018/parse/glob.c,v retrieving revision 1.3 retrieving revision 1.7 diff -u -p -r1.3 -r1.7 --- OpenXM_contrib2/asir2018/parse/glob.c 2019/03/29 04:43:18 1.3 +++ OpenXM_contrib2/asir2018/parse/glob.c 2020/06/20 05:56:08 1.7 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2018/parse/glob.c,v 1.2 2018/09/21 07:06:52 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2018/parse/glob.c,v 1.6 2020/06/19 08:14:38 noro Exp $ */ #include "ca.h" #include "al.h" @@ -567,13 +567,16 @@ void int_handler(int sig) return; } #endif -#if defined(linux) +#if !defined(ANDROID) && defined(linux) +/* #if 1 while ( stdin->_IO_read_ptr < stdin->_IO_read_end ) #else while ( stdin->_gptr < stdin->_egptr ) #endif getchar(); +*/ + if( __freadable(stdin) ) __fpurge(stdin); #endif while ( 1 ) { char buf[BUFSIZ];