diff options
author | Bruno Haible <bruno@clisp.org> | 2011-06-03 00:10:00 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-06-04 10:59:53 +0200 |
commit | 64e338384bc99dfb49c4f46648b3fa0c50e8491d (patch) | |
tree | 0fc0fc10079262643c99b1d45f2036fd69dc9ec3 /modules/pipe2 | |
parent | 1b20f727196f5f3361c2edf5ca28ac0032425706 (diff) | |
download | gnulib-64e338384bc99dfb49c4f46648b3fa0c50e8491d.tar.gz |
pipe2: Remove dependency on 'nonblocking' module.
* lib/pipe2.c: Include verify.h. Include nonblocking.h only if
O_NONBLOCK is defined by gnulib.
(pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
is zero.
* modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
* tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
defined by gnulib.
(get_nonblocking_flag): New function.
(main): Test O_NONBLOCK flag only if it is nonzero.
Diffstat (limited to 'modules/pipe2')
-rw-r--r-- | modules/pipe2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pipe2 b/modules/pipe2 index ca722168a7..62872a2255 100644 --- a/modules/pipe2 +++ b/modules/pipe2 @@ -10,7 +10,7 @@ unistd fcntl-h binary-io extensions -nonblocking +verify configure.ac: gl_FUNC_PIPE2 |