summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
Diffstat (limited to 'gl')
-rw-r--r--gl/tests/ioctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gl/tests/ioctl.c b/gl/tests/ioctl.c
index 2e51c92d9a..4a2fd3981f 100644
--- a/gl/tests/ioctl.c
+++ b/gl/tests/ioctl.c
@@ -46,6 +46,10 @@ rpl_ioctl (int fd, int request, ... /* {void *,char *} arg */)
# include <errno.h>
+/* Get HANDLE. */
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+
# include "fd-hook.h"
/* Get _get_osfhandle. */
# include "msvc-nothrow.h"