pipe2: fix O_NONBLOCK support on mingw
authorEric Blake <eblake@redhat.com>
Fri, 8 Apr 2011 16:52:55 +0000 (10:52 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 8 Apr 2011 17:58:06 +0000 (11:58 -0600)
commit0568a6e8985cc2ae9c57cb03fc81f5305458b7d2
tree84c98eeb4c8d9c61431a1821c154ad9d09e46803
parentb277764ab1e0a68b1db0bf254ea4dbe8e16c0603
pipe2: fix O_NONBLOCK support on mingw

* modules/pipe2 (Depends-on): Add nonblocking.
* lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
* tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
* tests/test-nonblocking.c (main): Likewise.
* modules/pipe2-tests (Makefile.am): Avoid link failure.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/pipe2.c
modules/pipe2
modules/pipe2-tests
tests/test-pipe2.c