summaryrefslogtreecommitdiff
path: root/src/jtag/parport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtag/parport.c')
-rw-r--r--src/jtag/parport.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jtag/parport.c b/src/jtag/parport.c
index a46d611f..bc95c3d0 100644
--- a/src/jtag/parport.c
+++ b/src/jtag/parport.c
@@ -38,9 +38,7 @@
#else
-#ifndef _WIN32
-#include <sys/io.h>
-#else
+#ifdef _WIN32
#include "errno.h"
#endif /* _WIN32 */
@@ -62,6 +60,10 @@
#endif
#include <fcntl.h>
#include <sys/ioctl.h>
+#else /* not PARPORT_USE_PPDEV */
+#ifndef _WIN32
+#include <sys/io.h>
+#endif
#endif
#if PARPORT_USE_GIVEIO == 1