diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-12-08 15:39:25 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-12-08 17:28:59 +0100 |
commit | e22857e329a1bfc7b31d7f0da4093579c3563340 (patch) | |
tree | 2f79f588fe40aae6683905a7e15489cdf2ff9d18 /lib/url.c | |
parent | ebaab4d17d7fa5a9098eb93c65f67f7f70d9e634 (diff) | |
download | curl-bagder/curl-remove-emx.tar.gz |
curl: remove __EMX__ #ifdefsbagder/curl-remove-emx
These are OS/2-specific things added to the code in the year 2000. They
were always ugly. If there's any user left, they still don't need it
done this way.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -4635,22 +4635,8 @@ CURLcode Curl_setup_conn(struct connectdata *conn, Curl_verboseconnect(conn); } - conn->now = Curl_now(); /* time this *after* the connect is done, we - set this here perhaps a second time */ - -#ifdef __EMX__ - /* - * This check is quite a hack. We're calling _fsetmode to fix the problem - * with fwrite converting newline characters (you get mangled text files, - * and corrupted binary files when you download to stdout and redirect it to - * a file). - */ - - if((data->set.out)->_handle == NULL) { - _fsetmode(stdout, "b"); - } -#endif - + conn->now = Curl_now(); /* time this *after* the connect is done, we set + this here perhaps a second time */ return result; } |