char infp_fclose = 0;
FILE *outfp;
RETSIGTYPE (*sigint)();
-#if !defined(__EMX__) && !defined(__DJGPP__)
+#ifdef SIGTSTP
RETSIGTYPE (*sigtstp)();
#endif
size_t bytes_read;
#endif
sigint = signal(SIGINT, SIG_IGN);
- /* 20000318 mgs
- * this is needed by the emx system, SIGTSTP is not a supported signal */
-#if !defined(__EMX__) && !defined(__DJGPP__)
+#ifdef SIGTSTP
sigtstp = signal(SIGTSTP, SIG_IGN);
#endif
#endif
signal(SIGINT, sigint);
-#if !defined(__EMX__) && !defined(__DJGPP__)
+#ifdef SIGTSTP
signal(SIGTSTP, sigtstp);
#endif
#define sread(x,y,z) read_s(x,y,z)
#define swrite(x,y,z) write_s(x,y,z)
#define select(n,r,w,x,t) select_s(n,r,w,x,t)
+#define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
+#define IOCTL_3_ARGS
+#include <tcp.h>
+#ifdef word
+#undef word
+#endif
+
#else
#define sclose(x) close(x)
" Overrides -n and --netrc-optional\n"
" -U/--proxy-user <user[:password]> Specify Proxy authentication\n"
" -v/--verbose Makes the operation more talkative\n"
-#ifdef DJGPP
- " Also enables Watt-32 debugging\n"
-#endif
" -V/--version Outputs version number then quits");
+#ifdef __DJGPP__
+ puts(" --wdebug Turns on WATT-32 debugging under DJGPP");
+#endif
puts(" -w/--write-out [format] What to output after completion\n"
" -x/--proxy <host[:port]> Use proxy. (Default port is 1080)\n"
" --random-file <file> File to use for reading random data from (SSL)\n"
{"5m", "ntlm", FALSE},
{"5n", "basic", FALSE},
{"5o", "anyauth", FALSE},
+#ifdef __DJGPP__
+ {"5p", "wdebug", FALSE},
+#endif
{"0", "http1.0", FALSE},
{"1", "tlsv1", FALSE},
{"2", "sslv2", FALSE},
config->authtype = CURLAUTH_ANY;
break;
+#ifdef __DJGPP__
+ case 'p': /* --wdebug */
+ dbug_init();
+ break;
+#endif
+
default: /* the URL! */
{
struct getout *url;
cleanarg(nextarg);
break;
case 'v':
-#ifdef DJGPP
- dbug_init();
-#endif
config->conf ^= CONF_VERBOSE; /* talk a lot */
break;
case 'V':
#else
#ifdef DJGPP
+#include <tcp.h>
+#ifdef word
+#undef word
+#endif
#define DIR_CHAR "/"
#define DOT_CHAR "_"
#else
#define CURL_NAME "curl"
-#define CURL_VERSION "7.10.6-pre1"
+#define CURL_VERSION "7.10.6-pre3"
#define CURL_ID CURL_NAME " " CURL_VERSION " (" OS ") "