/* Define this if you have struct timeval */
#define HAVE_STRUCT_TIMEVAL 1
+/* ---------------------------------------------------------------- */
+/* Watt-32 tcp/ip SPECIFIC */
+/* ---------------------------------------------------------------- */
+
+#ifdef USE_WATT32
+ #include <tcp.h>
+ #undef byte
+ #undef word
+ #undef USE_WINSOCK
+ #undef HAVE_WINSOCK_H
+ #undef HAVE_WINSOCK2_H
+ #undef HAVE_WS2TCPIP_H
+ #define HAVE_GETADDRINFO
+ #define HAVE_GETNAMEINFO
+ #define HAVE_SYS_IOCTL_H
+ #define HAVE_SYS_SOCKET_H
+ #define HAVE_NETINET_IN_H
+ #define HAVE_NETDB_H
+ #define HAVE_ARPA_INET_H
+ #define HAVE_FREEADDRINFO
+ #define SOCKET int
+#endif
+
+
/* ---------------------------------------------------------------- */
/* COMPILER SPECIFIC */
/* ---------------------------------------------------------------- */
#endif
#ifdef MSDOS
+#define USE_WATT32
#include <dos.h>
static const char *msdosify(const char *);
/* stop stat() wasting time */
_djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC | _STAT_DIRSIZE;
#endif
+
return curl_global_init(CURL_GLOBAL_DEFAULT);
}
" -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",
{"*m", "ntlm", FALSE},
{"*n", "basic", FALSE},
{"*o", "anyauth", FALSE},
-#ifdef MSDOS
+#ifdef USE_WATT32
{"*p", "wdebug", FALSE},
#endif
{"*q", "ftp-create-dirs", FALSE},
/* --no-anyauth simply doesn't touch it */
break;
-#ifdef MSDOS
+#ifdef USE_WATT32
case 'p': /* --wdebug */
dbug_init();
break;