diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2005-09-03 03:54:16 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2005-09-03 03:54:16 +0000 |
commit | e9a638d00468bc1b7f4435bb3d9a7ae8067c1f63 (patch) | |
tree | a950610538dd795ec7941a76fafcc45810e7f7d3 /src/share/grabbag/file.c | |
parent | 1be4415813c774cd0460a9b5e62a8f49d0b360c4 (diff) | |
download | flac-e9a638d00468bc1b7f4435bb3d9a7ae8067c1f63.tar.gz |
add support for building on os/2 with emx
Diffstat (limited to 'src/share/grabbag/file.c')
-rw-r--r-- | src/share/grabbag/file.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/share/grabbag/file.c b/src/share/grabbag/file.c index 5f362da6..a798fac8 100644 --- a/src/share/grabbag/file.c +++ b/src/share/grabbag/file.c @@ -24,7 +24,7 @@ #include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */ #include <utime.h> /* for utime() */ #endif -#ifdef __CYGWIN__ +#if defined __CYGWIN__ || defined __EMX__ #include <io.h> /* for setmode(), O_BINARY */ #include <fcntl.h> /* for _O_BINARY */ #endif @@ -120,6 +120,8 @@ FILE *grabbag__file_get_binary_stdin() #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; @@ -136,6 +138,8 @@ FILE *grabbag__file_get_binary_stdout() #elif defined __CYGWIN__ /* almost certainly not needed for any modern Cygwin, but let's be safe... */ setmode(_fileno(stdout), _O_BINARY); +#elif defined __EMX__ + setmode(fileno(stdout), O_BINARY); #endif return stdout; |