diff options
Diffstat (limited to 'src/jtag/gw16012.c')
-rw-r--r-- | src/jtag/gw16012.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jtag/gw16012.c b/src/jtag/gw16012.c index 8c73590b..8060d7d6 100644 --- a/src/jtag/gw16012.c +++ b/src/jtag/gw16012.c @@ -43,9 +43,7 @@ #else -#ifndef _WIN32 -#include <sys/io.h> -#else +#ifdef _WIN32 #include "errno.h" #endif /* _WIN32 */ @@ -69,6 +67,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 |