diff options
author | Yang Tse <yangsita@gmail.com> | 2011-10-05 02:58:18 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-10-05 02:58:18 +0200 |
commit | 0572ad6d01a44942e9f5edcaa151b2ca0e75ffef (patch) | |
tree | ad5b94cebc487712ad2df355b6a78aad898bb71e /src/tool_binmode.c | |
parent | aa7d5b946a681482db4492b32fad9c3a6a61bcd0 (diff) | |
download | curl-0572ad6d01a44942e9f5edcaa151b2ca0e75ffef.tar.gz |
curl tool: symbol check adjustment
Diffstat (limited to 'src/tool_binmode.c')
-rw-r--r-- | src/tool_binmode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tool_binmode.c b/src/tool_binmode.c index 4afe9a413..51bbb45d2 100644 --- a/src/tool_binmode.c +++ b/src/tool_binmode.c @@ -37,10 +37,12 @@ void set_binmode(FILE *stream) { -#ifdef __HIGHC__ +#ifdef O_BINARY +# ifdef __HIGHC__ _setmode(stream, O_BINARY); -#else +# else setmode(fileno(stream), O_BINARY); +# endif #endif } |