[sane-devel] Changes to the saned access control functions
Franz Bakan" <email@example.com
Thu, 10 Jan 2002 23:46:43 +0100 (CET)
On Thu, 10 Jan 2002 20:50:38 +0100, Henning Meier-Geinitz wrote:
>> for compilation on OS/2 I had to remove line 5 of inet_ntop.c
>> #include <arpa/inet.h>
>> Otherwise I get redefine-errors
>> (probably due to missing
>> #ifndef ...
>> #define ...
>> lines in the OS/2 header files)
>> But all things defined in arpa/inet.h are also defined in netinet/in.h
>> so <arpa/inet.h> is not needed here.
>Thanks for testing.
>Please try the latest CVS. I have just moved the includes around.
>saned uses them in the order I used now so probably they will work
>without #ifdefs now.
Sorry doesn't help ...
In file included from inet_ntop.c:6:
G:\EMX\INCLUDE\netinet/in.h:89: parse error before `u_long'
G:\EMX\INCLUDE\netinet/in.h:89: warning: no semicolon at end of struct or union
But this order works:
Seems that sys/types.h has to be included first.
>> Access through saned only works (I only tested localhost)
>> if I start saned with -d parameter. (same behaviour as always)
>> Without this parameter scanimage -L shows nothing.
>> I did not try the inetd - approach.
>Without -d or -s, it's in inetd mode so it waits for sane requests on
I see, so it works as designed.