fix serdisplib compile
[openwrt/svn-archive/archive.git] / libs / serdisplib / patches / 100-io.patch
1 diff -ru serdisplib-1.96.orig/src/serdisp_connect.c serdisplib-1.96/src/serdisp_connect.c
2 --- serdisplib-1.96.orig/src/serdisp_connect.c 2005-10-07 20:40:50.000000000 +0200
3 +++ serdisplib-1.96/src/serdisp_connect.c 2005-12-12 18:48:58.000000000 +0200
4 @@ -60,6 +60,7 @@
5 /* directIO only with linux and i386 */
6 #if defined(__linux__) && (defined(__i386__) || defined(__x86_64__))
7 #define __sd_linux_use_directIO__ 1
8 + #include <sys/io.h>
9 #endif
10
11
12 @@ -67,7 +68,6 @@
13 #if defined(__linux__)
14 #include <linux/ppdev.h>
15 #include <linux/parport.h>
16 - #include <sys/io.h>
17 #include <stdlib.h>
18 #define OUTB(_d, _p) outb( (_d), (_p) )
19 #define INB(_p) inb( (_p) )