nonblocking: reduce dependency
authorEric Blake <eblake@redhat.com>
Fri, 8 Apr 2011 17:51:45 +0000 (11:51 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 8 Apr 2011 18:52:29 +0000 (12:52 -0600)
commit4a1579d7560659ef5723325726eda14490a967f6
tree2c79b62e7dc80fac7cd39e68663a8cf32b297d78
parent0568a6e8985cc2ae9c57cb03fc81f5305458b7d2
nonblocking: reduce dependency

No need to make nonblocking drag in sockets just for a test;
test them if they are present and skip them otherwise.

* tests/test-nonblocking.c: Only test sockets when in use.
* modules/nonblocking-tests (Depends-on): Drop socket.
(Makefile.am): Link even if sockets are not present.
* modules/pipe2-tests (Makefile.am): Likewise.
* lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.

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