diff options
author | LRN <lrn1986@gmail.com> | 2012-04-12 12:44:33 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-04-12 12:44:33 +0200 |
commit | 7a147d8739ad85c2485c79a3b1715212c85460a1 (patch) | |
tree | 216157ad1f529019fbde26071907b244319600a7 /lib/ioctl.c | |
parent | 79958342269382b4ecbe3c5f566f86f71eb09ace (diff) | |
download | gnulib-7a147d8739ad85c2485c79a3b1715212c85460a1.tar.gz |
ioctl: Fix compilation error on mingw.
* lib/ioctl.c: Include <windows.h>.
Also reported by Ray Satiro <raysatiro@yahoo.com>.
Diffstat (limited to 'lib/ioctl.c')
-rw-r--r-- | lib/ioctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ioctl.c b/lib/ioctl.c index 2e51c92d9a..4a2fd3981f 100644 --- a/lib/ioctl.c +++ b/lib/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" |