CVSROOT: /sources/m4 Module name: m4 Changes by: Eric Blake <ericb> 06/12/17 04:21:16
Index: src/main.c =================================================================== RCS file: /sources/m4/m4/src/main.c,v retrieving revision 1.103 retrieving revision 1.104 diff -u -b -r1.103 -r1.104 --- src/main.c 14 Nov 2006 05:58:01 -0000 1.103 +++ src/main.c 17 Dec 2006 04:21:16 -0000 1.104 @@ -776,7 +776,7 @@ stream and detect any errors it might have encountered. Close stdin if we read from it, to detect any errors. */ m4_debug_set_output (context, NULL); - if (read_stdin && fclose (stdin) == EOF) + if (read_stdin && close_stream (stdin) == EOF) m4_error (context, 0, errno, _("error closing stdin")); exit_status = m4_get_exit_status (context);