[sane-devel] Changes to the saned access control
Franz Bakan
fbakan at gmx.net
Sun Feb 17 20:12:05 GMT 2002
On Sun, 17 Feb 2002 19:54:11 +0100, Henning Meier-Geinitz wrote:
>> Hi, now compiling sane-backends on OS/2 fails with
>>
>> inet_pton.c: In function `inet_pton':
>> inet_pton.c:36: `in_addr_t' undeclared (first use in this function)
>> inet_pton.c:36: (Each undeclared identifier is reported only once
>> inet_pton.c:36: for each function it appears in.)
>> inet_pton.c:36: parse error before `in'
>> inet_pton.c:38: `in' undeclared (first use in this function)
>
>Sometimes I curse OS/2 :-). in_addr_t is the return value of
>"inet_addr" and should be defined in <netinet/in.h> according to my
>docs. Maybe I'm getting something wrong here, but this looks pretty
>broken to me.
netinet/in.h is quite old (1996) here and contains:
extern u_long inet_addr(__const__ char*);
>Does it work if you change in_addr_t to u_int32_t? If this works, I
>will add a test to configure.
It compiles but it seems to me a type mismatch
because config.h contains:
/* Define to `unsigned int' if <sys/types.h> doesn't define. */
#define u_int32_t unsigned int
Bye,
Franz
More information about the sane-devel
mailing list