From: KO Myung-Hun Date: Thu, 14 Jan 2016 02:23:42 +0000 (+0900) Subject: binary-io: don't put fd in binary mode if it is a console on EMX X-Git-Tag: v1.0~6856 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=46c54f17675d6139eeefffaa2aec99941193a99c;p=gnulib.git binary-io: don't put fd in binary mode if it is a console on EMX * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is a console on EMX. --- diff --git a/lib/binary-io.h b/lib/binary-io.h index d5c8233570..9f17c0d398 100644 --- a/lib/binary-io.h +++ b/lib/binary-io.h @@ -60,7 +60,7 @@ set_binary_mode (int fd, int mode) /* SET_BINARY (fd); changes the file descriptor fd to perform binary I/O. */ -#ifdef __DJGPP__ +#if defined __DJGPP__ || defined __EMX__ # include /* declares isatty() */ /* Avoid putting stdin/stdout in binary mode if it is connected to the console, because that would make it impossible for the user