1 
2 /* Web Polygraph       http://www.web-polygraph.org/
3  * Copyright 2003-2011 The Measurement Factory
4  * Licensed under the Apache License, Version 2.0 */
5 
6 #ifndef POLYGRAPH__XSTD_H_SYS_IOCTL_H
7 #define POLYGRAPH__XSTD_H_SYS_IOCTL_H
8 
9 #include "xstd/h/sys/types.h"
10 
11 #ifdef HAVE_SYS_IOCTL_H
12 #include <sys/ioctl.h>
13 #endif
14 
15 #if !defined(HAVE_IOCTL) && defined(HAVE_IOCTLSOCKET)
16 	// XXX: use inlined redirector
17 #	define ioctl ioctlsocket
18 #endif
19 
20 #endif
21