Re: USB Error on Linux

[email protected] (Aaron M. Ucko)
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
"Wei Hu" <[email protected]> writes:

> /usr/include/usb.h:69: Error: Syntax error in input(3).

Please try patching libusb.i as follows:

--- bitpim-0.9.07.dfsg.1.orig/src/native/usb/libusb.i
+++ bitpim-0.9.07.dfsg.1/src/native/usb/libusb.i
@@ -43,6 +43,8 @@
 typedef unsigned short u_int16_t;
 typedef unsigned char u_int8_t;
 
+#define __attribute__(x)
+
 %include usb.h
 
 // various wrappers and convenience functions

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger [email protected] (NOT a valid e-mail address) for more info.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.