Hello, I received this patch in gnutls for ioctl.c.
regards, Nikos
diff --git a/lib/ioctl.c b/lib/ioctl.c
index 2e51c92..e6ba46b 100644
--- a/lib/ioctl.c
+++ b/lib/ioctl.c
@@ -49,6 +49,9 @@ rpl_ioctl (int fd, int request, ... /* {void *,char *} arg */)
# include "fd-hook.h"
/* Get _get_osfhandle. */
# include "msvc-nothrow.h"
+/* Get HANDLE */
+# include <windows.h>
+
static int
primary_ioctl (int fd, int request, void *arg)
