<br><br><div class="gmail_quote">On Tue, Jan 26, 2010 at 3:04 AM, Oliver Schwartz <span dir="ltr">&lt;<a href="mailto:Oliver.Schwartz@gmx.de">Oliver.Schwartz@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
On 25.01.2010, at 12:26, Torfinn Ingolfsen wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In the meantime, another FreeBSD user found a way to fix it, it is just a one-line patch:<br>
<a href="http://lists.freebsd.org/pipermail/freebsd-usb/2010-January/" target="_blank">http://lists.freebsd.org/pipermail/freebsd-usb/2010-January/</a>008172.html<br>
<br>
With Andrew&#39;s patch, my scanner now works:<br>
 root@kg-v2# sane-find-scanner -q<br>
found USB scanner (vendor=0x03f0 [HP], product=0xc202 [Photosmart 8200 series]) at libusb:/dev/usb:/dev/ugen1.2<br>
found USB scanner (vendor=0x06bd [AGFA], product=0x2061 [ Snapscan1212u_2]) at libusb:/dev/usb:/dev/ugen2.2<br>
root@kg-v2# scanimage -L<br>
device `snapscan:libusb:/dev/usb:/dev/ugen2.2&#39; is a AGFA SNAPSCAN 1212U_2 flatbed scanner<br>
</blockquote>
<br>
<br>
Thanks for the pointer, I&#39;ll try to get this fixed in the backend. The code in question was added recently to fix another problem with calculating a unique identifier.<br>
<br>
Maybe one of the guys who&#39;s experienced with autoconf can give me a hint on how to do this the best way. Should I just use &quot;#ifdef BSD&quot; around the code in question or is there some autoconf magic that would allow me to do a more advanced query?<br>

<br>
I also have to retest this on OS X - the code in question looks very Linux specific.<br>
<br>
Kind regards,<br><font color="#888888">
<br>
Oliver</font><div><div></div><div class="h5"><br><br></div></div></blockquote><div><br>I don&#39;t think there is any autoconf stuff that can help you... or perhaps what you need is already there.   A quick look at sanei_usb_init() and I think its the one generate 2 types of strings depending on if your using libusb 1.0 or not.<br>
<br>So at least you should be able to reference HAVE_LIBUSB_1.0 but maybe better to update sanei_usb_init() code to always generate a consistent string?<br><br>Chris<br></div></div>