diff -urbB wget/src/cmpt.c wget.wip/src/cmpt.c
--- wget/src/cmpt.c	Thu Nov 29 09:55:27 2001
+++ wget.wip/src/cmpt.c	Thu Nov 29 11:21:49 2001
@@ -1212,6 +1212,8 @@
 /* A simple usleep implementation based on select().  This will
    probably not work on Windows.  */
 
+#ifndef WINDOWS
+
 int
 usleep (unsigned long usec)
 {
@@ -1221,4 +1223,15 @@
   select (0, NULL, NULL, NULL, &tm);
   return 0;
 }
+#else /* WINDOWS */
+
+int
+usleep (unsigned long usec)
+{
+  /* SleepEx wants msec, however note: currently usleep is called with 1000 * val
+     so it's not a big problem. HEH */
+  SleepEx (usec / 1000, TRUE);
+}
+
+#endif /* WINDOWS */
 #endif /* not HAVE_USLEEP */
diff -urbB wget/src/mswindows.h wget.wip/src/mswindows.h
--- wget/src/mswindows.h	Fri Jun 15 11:46:50 2001
+++ wget.wip/src/mswindows.h	Thu Nov 29 11:18:18 2001
@@ -48,6 +48,13 @@
 # define stat _stat
 #endif
 
+#ifdef HAVE_ISATTY
+/* Microsoft VC supports _isatty; Borland ? */
+#ifdef _MSC_VER
+# define isatty _isatty
+#endif
+#endif
+
 #define REALCLOSE(x) closesocket (x)
 
 /* read & write don't work with sockets on Windows 95.  */
diff -urbB wget/windows/Makefile.src wget.wip/windows/Makefile.src
--- wget/windows/Makefile.src	Mon Nov 26 09:33:24 2001
+++ wget.wip/windows/Makefile.src	Thu Nov 29 11:18:18 2001
@@ -54,13 +54,13 @@
 
 SRC = cmpt.c safe-ctype.c connect.c host.c http.c netrc.c ftp-basic.c ftp.c \
       ftp-ls.c ftp-opie.c getopt.c hash.c headers.c html-parse.c html-url.c \
-      retr.c recur.c res.c url.c cookies.c init.c utils.c main.c version.c \
-      mswindows.c fnmatch.c gnu-md5.c rbuf.c log.c $(SSLSRC)
+      progress.c retr.c recur.c res.c url.c cookies.c init.c utils.c main.c \
+      version.c mswindows.c fnmatch.c gnu-md5.c rbuf.c log.c $(SSLSRC)
 
 OBJ = cmpt$o safe-ctype$o connect$o host$o http$o netrc$o ftp-basic$o ftp$o \
       ftp-ls$o ftp-opie$o getopt$o hash$o headers$o html-parse$o html-url$o \
-      retr$o recur$o res$o url$o cookies$o init$o utils$o main$o version$o \
-      mswindows$o fnmatch$o gnu-md5$o rbuf$o log$o $(SSLOBJ)
+      progress$o retr$o recur$o res$o url$o cookies$o init$o utils$o main$o \
+      version$o mswindows$o fnmatch$o gnu-md5$o rbuf$o log$o $(SSLOBJ)
 
 .SUFFIXES: .c .obj
 
diff -urbB wget/windows/Makefile.src.bor wget.wip/windows/Makefile.src.bor
--- wget/windows/Makefile.src.bor	Tue Nov 20 15:04:49 2001
+++ wget.wip/windows/Makefile.src.bor	Thu Nov 29 11:18:18 2001
@@ -28,6 +28,7 @@
 res.obj+
 recur.obj+
 rbuf.obj+
+progress.obj+
 netrc.obj+
 mswindows.obj+
 gnu-md5.obj+
diff -urbB wget/windows/config.h.bor wget.wip/windows/config.h.bor
--- wget/windows/config.h.bor	Tue Nov 20 15:04:50 2001
+++ wget.wip/windows/config.h.bor	Thu Nov 29 11:18:19 2001
@@ -176,4 +176,8 @@
 /* Define if we're using builtin (GNU) md5.c.  */
 #define HAVE_BUILTIN_MD5 1
 
+/* Define if you have the isatty function.  */
+#undef HAVE_ISATTY
+
+
 #endif /* CONFIG_H */
diff -urbB wget/windows/config.h.ms wget.wip/windows/config.h.ms
--- wget/windows/config.h.ms	Tue Nov 20 15:04:50 2001
+++ wget.wip/windows/config.h.ms	Thu Nov 29 11:18:19 2001
@@ -186,5 +186,8 @@
 #define inline __inline
 #define ftruncate chsize
 
+/* Define if you have the isatty function.  */
+#define HAVE_ISATTY 1
+
 #endif /* CONFIG_H */
 
