Watcom support
Gisle Vanem <[email protected]> Fri, 08 Jul 2005 19:20:43 +0200
| Newsgroups | gmane.comp.web.wget.patches |
|---|---|
| Message-ID | <[email protected]> |
This patch reintroduces Watcom support. Tested with OpenWatcom 1.3. --- SVN-Latest/windows/config-compiler.h Fri Jul 08 18:55:12 2005 +++ windows/config-compiler.h Fri Jul 08 00:08:36 2005 @@ -157,6 +157,39 @@ #define HAVE_STRTOLL 1 ♀ +/* -------------------- */ +/* OpenWatcom section. */ +/* -------------------- */ +#elif defined __WATCOMC__ + +#define OS_TYPE "Windows-Watcom" + +#define LL(n) n##LL + +#define stat_alias _stati64 +#define fstat_alias _fstati64 +#define struct_stat struct _stati64 +#define struct_fstat struct _stati64 + +/* OpenWatcom 1.3 (or older) prototypes gai_strerror(), but is missing + from all import libraries. */ +#ifdef ENABLE_IPV6 +# define NEED_GAI_STRERROR +#endif + +#define HAVE_STDINT_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDBOOL_H 1 +#define HAVE_STRTOLL 1 +#define HAVE_UINT32_T 1 +#define HAVE_SYS_UTIME_H 1 +#undef HAVE_UTIME_H +#undef socklen_t /* avoid clash with <ws2tcpip.h> */ + +#undef SIZEOF_LONG_LONG /* avoid redefinition warning */ +#define SIZEOF_LONG_LONG 8 + +♀ #else # error Your compiler is not supported. #endif --------------- Only problem I have seen so far is in touch(). The utime() is done while file is open (active). So Watcom reacts with EACCESS (Permission denied). --gv