[package] fix sane-backends compilation on ARM platforms
[openwrt/svn-archive/archive.git] / utils / sane-backends / patches / 020-non-i386-qcam.patch
1 --- ./backend/qcam.c.orig 2009-12-01 06:11:04.000000000 +0000
2 +++ ./backend/qcam.c 2009-12-01 15:12:40.000000000 +0000
3 @@ -105,6 +105,17 @@
4
5 #include "qcam.h"
6
7 +#if !defined( __i386__) && !defined(__arm__)
8 +static inline unsigned char inb(unsigned int port)
9 +{
10 + return 0;
11 +}
12 +
13 +static inline void outb(unsigned char value, unsigned int port)
14 +{
15 +}
16 +#endif
17 +
18 /* status bits */
19 #define NeedRamTable (1 << 1)
20 #define BlackBalanceInProgress (1 << 6)