- 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
This commit is contained in:
@@ -27,9 +27,7 @@
|
||||
|
||||
/* system includes */
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/io.h>
|
||||
#else
|
||||
#ifdef _WIN32
|
||||
#include "errno.h"
|
||||
#endif /* _WIN32 */
|
||||
|
||||
@@ -45,6 +43,10 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
#else /* not PARPORT_USE_PPDEV */
|
||||
#ifndef _WIN32
|
||||
#include <sys/io.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if PARPORT_USE_GIVEIO == 1
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user