removed apu-1-config, you won't need it on a router, it's only for building othe
[openwrt/svn-archive/archive.git] / utils / lcd4linux / patches / 120-remove_parport_outb.patch
1 diff -urN lcd4linux.old/drv_generic_parport.c lcd4linux.dev/drv_generic_parport.c
2 --- lcd4linux.old/drv_generic_parport.c 2006-01-20 03:52:18.426419500 +0100
3 +++ lcd4linux.dev/drv_generic_parport.c 2006-01-20 03:57:59.205263500 +0100
4 @@ -134,6 +134,11 @@
5 #define PARPORT_STATUS_BUSY 0x80
6 #endif
7
8 +#ifndef WITH_OUTB
9 +#define inb(foo) 0
10 +#define outb(foo,bar) 0
11 +#endif
12 +
13 #if !defined(WITH_OUTB) && !defined(WITH_PPDEV)
14 #error neither outb() nor ppdev() possible
15 #error cannot compile parallel port driver
16 diff -ur lcd4linux.old/drv_generic_parport.c lcd4linux.dev/drv_generic_parport.c
17 --- lcd4linux.old/drv_generic_parport.c 2007-03-24 18:14:55.706590000 +0100
18 +++ lcd4linux.dev/drv_generic_parport.c 2007-03-24 18:15:20.036891568 +0100
19 @@ -117,16 +117,6 @@
20 #include <sys/stat.h>
21 #include <sys/ioctl.h>
22
23 -#ifdef HAVE_SYS_IO_H
24 -#include <sys/io.h>
25 -#define WITH_OUTB
26 -#else
27 -#ifdef HAVE_ASM_IO_H
28 -#include <asm/io.h>
29 -#define WITH_OUTB
30 -#endif
31 -#endif
32 -
33 #if defined (HAVE_LINUX_PARPORT_H) && defined (HAVE_LINUX_PPDEV_H)
34 #define WITH_PPDEV
35 #include <linux/parport.h>