From 712be40f8df23e5d4688728b5b73dd36236ca850 Mon Sep 17 00:00:00 2001 From: drath Date: Thu, 26 Jul 2007 09:36:17 +0000 Subject: - 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 --- src/jtag/parport.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/jtag/parport.c') 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 -#else +#ifdef _WIN32 #include "errno.h" #endif /* _WIN32 */ @@ -62,6 +60,10 @@ #endif #include #include +#else /* not PARPORT_USE_PPDEV */ +#ifndef _WIN32 +#include +#endif #endif #if PARPORT_USE_GIVEIO == 1 -- cgit v1.2.3