aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2008-12-16 08:48:44 +0000
committerGisle Vanem <gvanem@broadpark.no>2008-12-16 08:48:44 +0000
commit2025193b7a12ee1c94f103f5cd6e89281feb44d8 (patch)
tree174e5c8a82716aae77d705bcfe1217862c41b374 /src/main.c
parent418683f5377d7bcb751888345ba14a77fd68cdbd (diff)
Added the use of Watt-32 tcp/ip stack for Win32 targets.
Added USE_WATT32 unconditionally for MSDOS targets since it's the only option. Adjusted the text for '--wdebug'.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index f325106ec..de7852168 100644
--- a/src/main.c
+++ b/src/main.c
@@ -153,6 +153,7 @@
#endif
#ifdef MSDOS
+#define USE_WATT32
#include <dos.h>
static const char *msdosify(const char *);
@@ -621,6 +622,7 @@ static CURLcode main_init(void)
/* stop stat() wasting time */
_djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC | _STAT_DIRSIZE;
#endif
+
return curl_global_init(CURL_GLOBAL_DEFAULT);
}
@@ -831,8 +833,8 @@ static void help(void)
" -v/--verbose Make the operation more talkative",
" -V/--version Show version number and quit",
-#ifdef MSDOS
- " --wdebug Turn on Watt-32 debugging under DJGPP",
+#ifdef USE_WATT32
+ " --wdebug Turn on Watt-32 debugging",
#endif
" -w/--write-out <format> What to output after completion",
" -q If used as the first parameter disables .curlrc",
@@ -1620,7 +1622,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
{"*m", "ntlm", FALSE},
{"*n", "basic", FALSE},
{"*o", "anyauth", FALSE},
-#ifdef MSDOS
+#ifdef USE_WATT32
{"*p", "wdebug", FALSE},
#endif
{"*q", "ftp-create-dirs", FALSE},
@@ -1955,7 +1957,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
/* --no-anyauth simply doesn't touch it */
break;
-#ifdef MSDOS
+#ifdef USE_WATT32
case 'p': /* --wdebug */
dbug_init();
break;