[sane-devel] Compiling sane-backends CVS 2003/10/22 on OS/2

Julien BLACHE jb@jblache.org
Wed, 22 Oct 2003 18:47:26 +0200


"Franz Bakan" <fbakan@gmx.net> wrote:

Hi,

>>> 4. saned.c
>>
>>Can you provide a fix for that?
>
> Don't know, I will try. OS/2 has no IP_6...

It's not an IPv6 problem ;) The function is called check_v4_in_range()
for a reason :)

Well, could you change in_addr_t on line 611 to some unsigned 32bit
integer ?

That means :
-in_addr_t mask;
+u_int32_t mask; /* or similar, depending on what kind of integers
                    you've got on OS/2 */

in_addr_t is nothing else than an unsigned 32bit integer, so...

I'll commit that to CVS in a moment.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb@jblache.org>