packages/utils/lcd4linux/patches/120-remove_parport_outb.patch
olli bf2c89aa7a [Packages] utils/lcd4linux:
* Update to lcd4linux trunk revision 847
 * Add an simple init script and config file
 * Cleanup Makefile

git-svn-id: svn://svn.openwrt.org/openwrt/packages@9646 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-02 21:24:04 +00:00

34 lines
881 B
Diff

Index: lcd4linux-847/drv_generic_parport.c
===================================================================
--- lcd4linux-847.orig/drv_generic_parport.c 2007-12-01 17:15:10.000000000 +0100
+++ lcd4linux-847/drv_generic_parport.c 2007-12-01 17:15:11.000000000 +0100
@@ -39,16 +39,6 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
-#ifdef HAVE_SYS_IO_H
-#include <sys/io.h>
-#define WITH_OUTB
-#else
-#ifdef HAVE_ASM_IO_H
-#include <asm/io.h>
-#define WITH_OUTB
-#endif
-#endif
-
#if defined (HAVE_LINUX_PARPORT_H) && defined (HAVE_LINUX_PPDEV_H)
#define WITH_PPDEV
#include <linux/parport.h>
@@ -65,6 +55,11 @@
#define PARPORT_STATUS_BUSY 0x80
#endif
+#ifndef WITH_OUTB
+#define inb(foo) 0
+#define outb(foo,bar) 0
+#endif
+
#if !defined(WITH_OUTB) && !defined(WITH_PPDEV)
#error neither outb() nor ppdev() possible
#error cannot compile parallel port driver