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 <[EMAIL PROTECTED]> --- 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. _______________________________________________ devel mailing list [email protected] https://lists.openmoko.org/mailman/listinfo/devel
