diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-07-26 09:36:17 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2007-07-26 09:36:17 +0000 |
commit | 712be40f8df23e5d4688728b5b73dd36236ca850 (patch) | |
tree | 46160e1c3876a15da7969e1978b53e1524b6e0d6 /src/jtag/gw16012.c | |
parent | df4b030df770e905aae573b4825d62b3efc96515 (diff) |
- restrict direct parallel port access to x86 platforms (thanks to Vincent Palatin)
git-svn-id: svn://svn.berlios.de/openocd/trunk@183 b42882b7-edfa-0310-969c-e2dbd0fdcd60
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 |