summaryrefslogtreecommitdiff
path: root/src/jtag/parport.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 04:04:58 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 04:04:58 +0000
commit004c7124c44819960da97de85f422f630f04d7ba (patch)
tree675ba289ab14f98bde23c954048f834ab611b119 /src/jtag/parport.c
parent8a5b25790f064c408d747c9f087c4d45207fc3e4 (diff)
downloadopenocd+libswd-004c7124c44819960da97de85f422f630f04d7ba.tar.gz
openocd+libswd-004c7124c44819960da97de85f422f630f04d7ba.tar.bz2
openocd+libswd-004c7124c44819960da97de85f422f630f04d7ba.tar.xz
openocd+libswd-004c7124c44819960da97de85f422f630f04d7ba.zip
Audit and eliminate redundant #include directives from src/jtag.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1707 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/parport.c')
-rw-r--r--src/jtag/parport.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/jtag/parport.c b/src/jtag/parport.c
index 5f48d3af..74c01208 100644
--- a/src/jtag/parport.c
+++ b/src/jtag/parport.c
@@ -24,32 +24,17 @@
#include "config.h"
#endif
-#include "replacements.h"
-
#include "jtag.h"
#include "bitbang.h"
-/* system includes */
/* -ino: 060521-1036 */
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-
#include <machine/sysarch.h>
#include <machine/cpufunc.h>
#define ioperm(startport,length,enable)\
i386_set_ioperm((startport), (length), (enable))
-
-#else
-
-#ifdef _WIN32
-#include "errno.h"
-#endif /* _WIN32 */
-
#endif /* __FreeBSD__ */
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
-
#if PARPORT_USE_PPDEV == 1
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <dev/ppbus/ppi.h>
@@ -60,7 +45,6 @@
#include <linux/parport.h>
#include <linux/ppdev.h>
#endif
-#include <fcntl.h>
#include <sys/ioctl.h>
#else /* not PARPORT_USE_PPDEV */
#ifndef _WIN32
@@ -68,14 +52,10 @@
#endif
#endif
-#if PARPORT_USE_GIVEIO == 1
-#if IS_CYGWIN == 1
+#if PARPORT_USE_GIVEIO == 1 && IS_CYGWIN == 1
#include <windows.h>
-#include <errno.h>
-#endif
#endif
-#include "log.h"
/* parallel port cable description
*/