Mercurial > gnulib
annotate m4/write.m4 @ 17363:5a51fb7777a9
sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
Problem reported by Marco Atzeri in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
* lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
Simply delegate to the system <sys/select.h> in this case too.
Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
be needed on Solaris either.
* lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
Simply delgate to the system <sys/time.h> in this case.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 19 Mar 2013 09:08:47 -0700 |
parents | e542fd46ad6f |
children | 344018b6e5d7 |
rev | line source |
---|---|
17185
dd46d4e6beea
dup, execute, fatal-signal, etc.: no 'static inline'
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
1 # write.m4 serial 5 |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
17185
diff
changeset
|
2 dnl Copyright (C) 2008-2013 Free Software Foundation, Inc. |
10484 | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | |
5 dnl with or without modifications, as long as this notice is preserved. | |
6 | |
7 AC_DEFUN([gl_FUNC_WRITE], | |
8 [ | |
9 AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) | |
15769
8b34c7785c75
write: Support for MSVC 9.
Bruno Haible <bruno@clisp.org>
parents:
15174
diff
changeset
|
10 AC_REQUIRE([gl_MSVC_INVAL]) |
8b34c7785c75
write: Support for MSVC 9.
Bruno Haible <bruno@clisp.org>
parents:
15174
diff
changeset
|
11 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
8b34c7785c75
write: Support for MSVC 9.
Bruno Haible <bruno@clisp.org>
parents:
15174
diff
changeset
|
12 REPLACE_WRITE=1 |
8b34c7785c75
write: Support for MSVC 9.
Bruno Haible <bruno@clisp.org>
parents:
15174
diff
changeset
|
13 fi |
10484 | 14 dnl This ifdef is just an optimization, to avoid performing a configure |
15 dnl check whose result is not used. It does not make the test of | |
16 dnl GNULIB_UNISTD_H_SIGPIPE or GNULIB_SIGPIPE redundant. | |
17 m4_ifdef([gl_SIGNAL_SIGPIPE], [ | |
18 gl_SIGNAL_SIGPIPE | |
19 if test $gl_cv_header_signal_h_SIGPIPE != yes; then | |
20 REPLACE_WRITE=1 | |
21 fi | |
22 ]) | |
14578
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
23 m4_ifdef([gl_NONBLOCKING_IO], [ |
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
24 gl_NONBLOCKING_IO |
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
25 if test $gl_cv_have_nonblocking != yes; then |
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
26 REPLACE_WRITE=1 |
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
27 fi |
4e83bc0de9e4
Support non-blocking pipe I/O in write() on native Windows.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
28 ]) |
10484 | 29 ]) |
15769
8b34c7785c75
write: Support for MSVC 9.
Bruno Haible <bruno@clisp.org>
parents:
15174
diff
changeset
|
30 |
8b34c7785c75
write: Support for MSVC 9.
Bruno Haible <bruno@clisp.org>
parents:
15174
diff
changeset
|
31 # Prerequisites of lib/write.c. |
17185
dd46d4e6beea
dup, execute, fatal-signal, etc.: no 'static inline'
Paul Eggert <eggert@cs.ucla.edu>
parents:
16201
diff
changeset
|
32 AC_DEFUN([gl_PREREQ_WRITE], [:]) |