packages/utils/sane-backends/patches/020-non-i386-qcam.patch
florian a0eb77c515 [package] fix sane-backends compilation on ARM platforms
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20305 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-19 18:07:42 +00:00

21 lines
454 B
Diff

--- ./backend/qcam.c.orig 2009-12-01 06:11:04.000000000 +0000
+++ ./backend/qcam.c 2009-12-01 15:12:40.000000000 +0000
@@ -105,6 +105,17 @@
#include "qcam.h"
+#if !defined( __i386__) && !defined(__arm__)
+static inline unsigned char inb(unsigned int port)
+{
+ return 0;
+}
+
+static inline void outb(unsigned char value, unsigned int port)
+{
+}
+#endif
+
/* status bits */
#define NeedRamTable (1 << 1)
#define BlackBalanceInProgress (1 << 6)