diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-13 22:05:41 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-20 19:14:29 +0200 |
commit | edd79bb9d705c957c10adf9c9443d5681d7ba29d (patch) | |
tree | 3d415e892827e63ec6b51d81eec5e2f628c0059e | |
parent | 1fb7fc463adbfb583932bd2d2afaf261467a121f (diff) | |
download | busybox-w32-edd79bb9d705c957c10adf9c9443d5681d7ba29d.tar.gz busybox-w32-edd79bb9d705c957c10adf9c9443d5681d7ba29d.tar.bz2 busybox-w32-edd79bb9d705c957c10adf9c9443d5681d7ba29d.zip |
win32: wget: WIP
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
-rw-r--r-- | networking/wget.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c index 97f4a8f6e..a8638faf7 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -8,6 +8,11 @@ | |||
8 | */ | 8 | */ |
9 | #include "libbb.h" | 9 | #include "libbb.h" |
10 | 10 | ||
11 | #ifdef __MINGW32__ | ||
12 | #define REPLACE_STDIO | ||
13 | #include "strbuf_file.h" | ||
14 | #endif | ||
15 | |||
11 | struct host_info { | 16 | struct host_info { |
12 | // May be used if we ever will want to free() all xstrdup()s... | 17 | // May be used if we ever will want to free() all xstrdup()s... |
13 | /* char *allocated; */ | 18 | /* char *allocated; */ |
@@ -652,7 +657,12 @@ int wget_main(int argc UNUSED_PARAM, char **argv) | |||
652 | lsa = xhost2sockaddr(server.host, server.port); | 657 | lsa = xhost2sockaddr(server.host, server.port); |
653 | if (!(opt & WGET_OPT_QUIET)) { | 658 | if (!(opt & WGET_OPT_QUIET)) { |
654 | char *s = xmalloc_sockaddr2dotted(&lsa->u.sa); | 659 | char *s = xmalloc_sockaddr2dotted(&lsa->u.sa); |
660 | #ifdef __MINGW32__ | ||
661 | /* we have macro conflict here */ | ||
662 | winansi_fprintf(stderr, "Connecting to %s (%s)\n", server.host, s); | ||
663 | #else | ||
655 | fprintf(stderr, "Connecting to %s (%s)\n", server.host, s); | 664 | fprintf(stderr, "Connecting to %s (%s)\n", server.host, s); |
665 | #endif | ||
656 | free(s); | 666 | free(s); |
657 | } | 667 | } |
658 | establish_session: | 668 | establish_session: |