--- a/src/lharc.c (revision 773) +++ a/src/lharc.c (working copy) @@ -628,7 +628,7 @@ if (!isatty(1) && cmd == CMD_ADD) quiet = TRUE; } -#if 0 /* Comment out; IMHO, this feature is useless. by Koji Arai */ +#ifndef MINGW32 else { if (argc == 3 && !isatty(0)) { /* 1999.7.18 */ /* Bug(?) on MinGW, isatty() return 0 on Cygwin console. --- a/configure.ac (revision 773) +++ a/configure.ac (working copy) @@ -334,6 +334,11 @@ ;; esac +AC_MINGW32 +if test "x$MINGW32" = xyes; then + AC_DEFINE(MINGW32, 1, [Define to 1 if we're being compiled with MinGW.]) +fi + AC_CONFIG_FILES([Makefile src/Makefile man/Makefile olddoc/Makefile]) AC_CONFIG_FILES([tests/Makefile tests/lha-test]) AC_OUTPUT