+2006-12-29 Gisle Vanem <giva@bgnett.no>
+
+ * mswindows.c: Avoid a warning if 'ws_hangup()' is unused.
+
2006-12-27 Mauro Tortonesi <mauro@ferrara.linux.it>
* http.c (parse_content_disposition): Consider directory prefix, if
WSACleanup ();
}
+#if defined(CTRLBREAK_BACKGND) || defined(CTRLC_BACKGND)
static void
ws_hangup (const char *reason)
{
gesture as the parent will wait for us to terminate before resuming. */
FreeConsole ();
}
+#endif
/* Construct the name for a named section (a.k.a. `file mapping') object.
The returned string is dynamically allocated and needs to be xfree()'d. */
+2006-12-29 Gisle Vanem <giva@bgnett.no>
+
+ * config.h: Added 'HAVE_SYS_UTIME_H 1' which gets undefined as needed
+ in config-compiler.h.
+
+ * config-compiler.h: Added '_WIN32_WINNT=0x0501' as needed to pull in
+ the prototype of getaddrinfo() and other library functions. Defined
+ HAVE_UINTPTR_T and HAVE_INTPTR_T for Digital Mars, which supports
+ 'uintptr_t' and 'intptr_t'. Undefined HAVE_STDBOOL_H for Watcom, which
+ has <stdbol.h> but the file cannot be used since the '_Bool' builtin
+ is missing in the compiler!
+
2006-10-12 Gisle Vanem <giva@bgnett.no>
* config-compiler.h (HAVE_INTPTR_T): Define to 1 under MinGW.
#define SIZEOF_LONG_LONG 8
#define HAVE_INTPTR_T 1
#define HAVE_UINTPTR_T 1
-
#define HAVE_STRTOLL 1
+\f
+/* MingW needs _WIN32_WINNT==0x0501 defined to pull in getaddrinfo()
+ * and freeaddrinfo() etc.
+ */
+#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501)
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
+
\f
/* -------------------- */
/* MS Visual C section. */
#if _MSC_VER >= 1400
#pragma warning ( disable : 4996 )
#define _CRT_SECURE_NO_DEPRECATE
-#define HAVE_SYS_UTIME_H 1
-#undef HAVE_UTIME_H
#endif
+\f
+#undef HAVE_UTIME_H /* no <utime.h> */
+
\f
/* ------------------ */
/* Borland C section. */
#define HAVE_STDBOOL_H 1
#define HAVE_UINT32_T 1
+#define HAVE_UINTPTR_T 1
+#define HAVE_INTPTR_T 1
+
#undef SIZEOF_LONG_LONG
#define SIZEOF_LONG_LONG 8
#define HAVE__BOOL 1
#define HAVE_USLEEP 1
#define HAVE_STRTOLL 1
+#undef HAVE_UTIME_H /* no <utime.h> */
\f
/* -------------------- */
#define HAVE_STDINT_H 1
#define HAVE_INTTYPES_H 1
-#define HAVE_STDBOOL_H 1
+
+/* Watcom 1.6 do have <stdbool.h>, but definition of '_Bool' is missing! */
+/* #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
#define SIZEOF_LONG_LONG 8
+
+/* OpenWatcom needs _WIN32_WINNT==0x0501 defined to pull in getaddrinfo()
+ * and freeaddrinfo() etc.
+ */
+#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501)
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
+
\f
#else
# error Your compiler is not supported.