From 56378245964cdcf8ba993b1d4c01cf2836118c08 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 29 Aug 2007 00:49:37 +0000 Subject: [PATCH] OS/2 fixes (SF#1771378: https://sourceforge.net/tracker/index.php?func=detail&aid=1771378&group_id=13478&atid=113478) --- doc/html/changelog.html | 1 + src/libFLAC/stream_decoder.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/html/changelog.html b/doc/html/changelog.html index dd37e74f..a2a57b6e 100644 --- a/doc/html/changelog.html +++ b/doc/html/changelog.html @@ -105,6 +105,7 @@
  • Fixed bug where sometimes an existing installation of flac could interfere with the build process (SF #1763690).
  • Some MinGW fixes (SF #1684879).
  • Solaris 10 fixes (SF #1783225).
  • +
  • OS/2 fixes (SF #1771378).
  • diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 86eaacfa..505958f1 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -1287,9 +1287,11 @@ FILE *get_binary_stdin_(void) */ #if defined _MSC_VER || defined __MINGW32__ _setmode(_fileno(stdin), _O_BINARY); -#elif defined __CYGWIN__ || defined __EMX__ +#elif defined __CYGWIN__ /* almost certainly not needed for any modern Cygwin, but let's be safe... */ setmode(_fileno(stdin), _O_BINARY); +#elif defined __EMX__ + setmode(fileno(stdin), O_BINARY); #endif return stdin;