diff options
author | Bruno Haible <bruno@clisp.org> | 2011-10-04 01:19:29 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-10-04 01:19:29 +0200 |
commit | c684ca1db2ffbdffb3c907c9c5b4bd5caf6b6f8a (patch) | |
tree | d3b8f34cd0c240ea1c7aaeea05118fac66adc340 /m4/strsignal.m4 | |
parent | f8454dc9e024dbae12ce6339cca5a13e390ed6ea (diff) | |
download | gnulib-c684ca1db2ffbdffb3c907c9c5b4bd5caf6b6f8a.tar.gz |
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>.
Diffstat (limited to 'm4/strsignal.m4')
-rw-r--r-- | m4/strsignal.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/strsignal.m4 b/m4/strsignal.m4 index 9c9c4110ba..f4b0143355 100644 --- a/m4/strsignal.m4 +++ b/m4/strsignal.m4 @@ -1,4 +1,4 @@ -# 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, @@ -53,6 +53,7 @@ AC_DEFUN([gl_FUNC_STRSIGNAL], # 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>]]) ]) |