aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ifeel.c6
-rw-r--r--linuxhid.h5
2 files changed, 7 insertions, 4 deletions
diff --git a/ifeel.c b/ifeel.c
index b1caf94..3c3ca9c 100644
--- a/ifeel.c
+++ b/ifeel.c
@@ -28,9 +28,7 @@
*/
#include "m_pd.h"
-
#include <unistd.h>
-#include <sys/ioctl.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -39,6 +37,10 @@
#include <string.h>
#include <time.h>
+#ifndef NT
+#include <sys/ioctl.h>
+#endif
+
#include "ifeel.h"
diff --git a/linuxhid.h b/linuxhid.h
index 52bc815..08ed26e 100644
--- a/linuxhid.h
+++ b/linuxhid.h
@@ -9,14 +9,15 @@
#ifdef __gnu_linux__
#include <linux/input.h>
#endif
+#ifndef NT
+#include <sys/ioctl.h>
+#endif
#include <sys/stat.h>
-
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/fcntl.h>
-#include <sys/ioctl.h>
#include <unistd.h>