--- gnutls-3.0.18/gl/tests/ioctl.c.orig 2012-02-08 13:38:01 +0400 +++ gnutls-3.0.18/gl/tests/ioctl.c 2012-04-09 23:40:46 +0400 @@ -49,6 +49,8 @@ # include "fd-hook.h" /* Get _get_osfhandle. */ # include "msvc-nothrow.h" +/* Get HANDLE */ +# include static int primary_ioctl (int fd, int request, void *arg)