ioctl: Fix test failure on native Windows.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Feb 2012 15:39:30 +0000 (16:39 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Feb 2012 15:39:30 +0000 (16:39 +0100)
commitf2d741e7b9b60c6bfc1226bae87ffb4cd19e9f27
treea26ec38a9c3d056d0ac834613f3f32265285b4dc
parentc1bd375b4c5cbca0a7947c984e95f2cdd6a19456
ioctl: Fix test failure on native Windows.

* lib/ioctl.c: Include msvc-nothrow.h.
(primary_ioctl): If fd is not a valid handle, set errno to EBADF.
ChangeLog
lib/ioctl.c