[PATCH] Fix S3C2410 JTAG tool compilation on non-x86

Michael Buesch mb at bu3sch.de
Mon Dec 8 12:33:42 CET 2008


This fixes compilation on non-x86.
Some platforms, such as PowerPC, don't have sys/io.h and don't support
inb/outb.

Signed-off-by: Michael Buesch <mb at bu3sch.de>

---

This fixes compilation of openmoko on powerpc due to missing sys/io.h.


Index: sjf2410-linux/ppt.c
===================================================================
--- sjf2410-linux.orig/ppt.c	2008-12-08 12:28:07.000000000 +0100
+++ sjf2410-linux/ppt.c	2008-12-08 12:29:07.000000000 +0100
@@ -5,9 +5,12 @@
 #else
 #include <unistd.h>
 #include <stdlib.h>
-#include <sys/io.h>
+#ifdef LINUX_PPDEV
 #include <linux/parport.h>
 #include <linux/ppdev.h>
+#else
+#include <sys/io.h>
+#endif
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <fcntl.h>


-- 
Greetings Michael.



More information about the devel mailing list