#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
-#ifndef _IOWR
-# include "ioctl.h"
-#endif
#include <stdio.h>
#include <sys/ioctl.h>
#include <libcfs/kp30.h>
#include <libcfs/user-bitops.h>
+#ifndef _IOWR
+# include "ioctl.h"
+#endif
+
/* definitions for liblustre */
#ifdef __CYGWIN__