From: LRN Date: Thu, 12 Apr 2012 10:44:33 +0000 (+0200) Subject: ioctl: Fix compilation error on mingw. X-Git-Tag: v0.1~752 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=7a147d8739ad85c2485c79a3b1715212c85460a1;p=gnulib.git ioctl: Fix compilation error on mingw. * lib/ioctl.c: Include . Also reported by Ray Satiro . --- diff --git a/ChangeLog b/ChangeLog index d41141cf8..84bdeee13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-04-12 LRN (tiny change) + + ioctl: Fix compilation error on mingw. + * lib/ioctl.c: Include . + Also reported by Ray Satiro . + 2012-04-04 Jim Meyering regex: correct #pragma guard expression diff --git a/lib/ioctl.c b/lib/ioctl.c index 2e51c92d9..4a2fd3981 100644 --- a/lib/ioctl.c +++ b/lib/ioctl.c @@ -46,6 +46,10 @@ rpl_ioctl (int fd, int request, ... /* {void *,char *} arg */) # include +/* Get HANDLE. */ +# define WIN32_LEAN_AND_MEAN +# include + # include "fd-hook.h" /* Get _get_osfhandle. */ # include "msvc-nothrow.h"