mirror of git://gcc.gnu.org/git/gcc.git
re PR libfortran/27964 (Wrong line ends on windows (XP))
PR libfortran/27964 * configure.ac: Check for setmode() function. * configure: Regenerate. * config.h.in: Regenerate. * io/unix.c (output_stream): Force stdout to binary mode. (error_stream): Force stderr to binary mode. From-SVN: r117166
This commit is contained in:
parent
45163b1afc
commit
6a7c793f3e
|
@ -1,3 +1,12 @@
|
||||||
|
2006-09-22 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
PR libfortran/27964
|
||||||
|
* configure.ac: Check for setmode() function.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* config.h.in: Regenerate.
|
||||||
|
* io/unix.c (output_stream): Force stdout to binary mode.
|
||||||
|
(error_stream): Force stderr to binary mode.
|
||||||
|
|
||||||
2006-09-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
2006-09-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||||
|
|
||||||
PR libgfortran/29099
|
PR libgfortran/29099
|
||||||
|
|
|
@ -492,6 +492,9 @@
|
||||||
/* libm includes scalbnl */
|
/* libm includes scalbnl */
|
||||||
#undef HAVE_SCALBNL
|
#undef HAVE_SCALBNL
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `setmode' function. */
|
||||||
|
#undef HAVE_SETMODE
|
||||||
|
|
||||||
/* Define to 1 if you have the `signal' function. */
|
/* Define to 1 if you have the `signal' function. */
|
||||||
#undef HAVE_SIGNAL
|
#undef HAVE_SIGNAL
|
||||||
|
|
||||||
|
|
|
@ -10037,7 +10037,7 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
for ac_func in wait
|
for ac_func in wait setmode
|
||||||
do
|
do
|
||||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
||||||
|
|
|
@ -172,7 +172,7 @@ AC_CHECK_MEMBERS([struct stat.st_rdev])
|
||||||
AC_CHECK_FUNCS(getrusage times mkstemp strtof strtold snprintf ftruncate chsize)
|
AC_CHECK_FUNCS(getrusage times mkstemp strtof strtold snprintf ftruncate chsize)
|
||||||
AC_CHECK_FUNCS(chdir strerror getlogin gethostname kill link symlink perror)
|
AC_CHECK_FUNCS(chdir strerror getlogin gethostname kill link symlink perror)
|
||||||
AC_CHECK_FUNCS(sleep time ttyname signal alarm ctime clock access fork execl)
|
AC_CHECK_FUNCS(sleep time ttyname signal alarm ctime clock access fork execl)
|
||||||
AC_CHECK_FUNCS(wait)
|
AC_CHECK_FUNCS(wait setmode)
|
||||||
|
|
||||||
# Check libc for getgid, getpid, getuid
|
# Check libc for getgid, getpid, getuid
|
||||||
AC_CHECK_LIB([c],[getgid],[AC_DEFINE([HAVE_GETGID],[1],[libc includes getgid])])
|
AC_CHECK_LIB([c],[getgid],[AC_DEFINE([HAVE_GETGID],[1],[libc includes getgid])])
|
||||||
|
|
|
@ -1289,6 +1289,9 @@ input_stream (void)
|
||||||
stream *
|
stream *
|
||||||
output_stream (void)
|
output_stream (void)
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_CRLF) && defined(HAVE_SETMODE)
|
||||||
|
setmode (STDOUT_FILENO, O_BINARY);
|
||||||
|
#endif
|
||||||
return fd_to_stream (STDOUT_FILENO, PROT_WRITE);
|
return fd_to_stream (STDOUT_FILENO, PROT_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1299,6 +1302,9 @@ output_stream (void)
|
||||||
stream *
|
stream *
|
||||||
error_stream (void)
|
error_stream (void)
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_CRLF) && defined(HAVE_SETMODE)
|
||||||
|
setmode (STDERR_FILENO, O_BINARY);
|
||||||
|
#endif
|
||||||
return fd_to_stream (STDERR_FILENO, PROT_WRITE);
|
return fd_to_stream (STDERR_FILENO, PROT_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue