summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-12-08 15:39:25 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-08 23:45:16 +0100
commit179ee78e8672ec44c50aa36279c48b28e008ea29 (patch)
treeef67cea44f4f00f9c55f7118858104161a11d1a7 /lib
parent9dfb19483366d5cb2d020328330b164603f71bc8 (diff)
downloadcurl-179ee78e8672ec44c50aa36279c48b28e008ea29.tar.gz
curl: remove __EMX__ #ifdefs
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. Closes #2166
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/url.c b/lib/url.c
index a09972a7c..8e0326219 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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;
}