+2011-10-03 Bruno Haible <bruno@clisp.org>
+
+ glthread/*, strsignal: Support for MSVC.
+ * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
+ including <winsock.h> on MSVC 9.
+ * lib/glthread/lock.h: Likewise.
+ * lib/glthread/thread.h: Likewise.
+ * lib/glthread/tls.h: Likewise.
+ * lib/glthread/yield.h: Likewise.
+ * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
+ if HAVE_UNISTD_H is false.
+ * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
+
2011-10-03 Bruno Haible <bruno@clisp.org>
nonblocking tests: Fix test failure on OpenBSD/SPARC64.
#if USE_WIN32_THREADS
+# define WIN32_LEAN_AND_MEAN /* avoid including junk */
# include <windows.h>
# ifdef __cplusplus
#if USE_WIN32_THREADS
+# define WIN32_LEAN_AND_MEAN /* avoid including junk */
# include <windows.h>
# ifdef __cplusplus
#if USE_WIN32_THREADS
+# define WIN32_LEAN_AND_MEAN /* avoid including junk */
# include <windows.h>
# ifdef __cplusplus
#if USE_WIN32_THREADS
+# define WIN32_LEAN_AND_MEAN /* avoid including junk */
# include <windows.h>
/* ------------------------- gl_tls_key_t datatype ------------------------- */
#if USE_WIN32_THREADS
+# define WIN32_LEAN_AND_MEAN /* avoid including junk */
# include <windows.h>
# ifdef __cplusplus
# include <config.h>
#endif
+/* Specification. */
+#include <string.h>
+
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#ifdef _LIBC
# include <libintl.h>
#else /* !_LIBC */
/* NetBSD declares sys_siglist in unistd.h. */
-# include <unistd.h>
+# if HAVE_UNISTD_H
+# include <unistd.h>
+# endif
# define INTUSE(x) (x)
-# strsignal.m4 serial 7
+# strsignal.m4 serial 8
dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
# Prerequisites of lib/strsignal.c.
AC_DEFUN([gl_PREREQ_STRSIGNAL], [
+ AC_CHECK_HEADERS_ONCE([unistd.h])
AC_REQUIRE([AC_DECL_SYS_SIGLIST])
AC_CHECK_DECLS([_sys_siglist], [], [], [[#include <signal.h>]])
])