[sane-devel] problems compiling dell1600n_net.c on OS/2
Jon Chambers
jon at jon.demon.co.uk
Thu Jun 14 20:53:55 UTC 2007
Hi Franz,
Strange - I haven't touched this file for 9 months....
On Wednesday 13 June 2007 21:11, Franz Bakan wrote:
> dell1600n_net.c:297: error: storage size of `selTimeVal' isn't known
> This can be solved by adding
> #include <sys/time.h>
I will add this, thanks.
> dell1600n_net.c:397: warning: passing arg 5 of `sendto' from incompatible
> pointer type dell1600n_net.c:297: warning: unused variable `selTimeVal'
> dell1600n_net.c: In function `sane_dell1600n_net_start':
> dell1600n_net.c:681: error: storage size of `selTimeVal' isn't known
> dell1600n_net.c:701: warning: passing arg 2 of `getsockname' from
> incompatible pointer type dell1600n_net.c:681: warning: unused variable
> `selTimeVal'
> dell1600n_net.c: In function `ProcessTcpResponse':
> dell1600n_net.c:1702: error: `SHUT_RDWR' undeclared (first use in this
> function)
> Here I don't know where SHUT_RDWR lives normaly :-(
This is a parameter to shutdown. On linux it is defined in sys/socket.h. I'd
be interested to see what the OS/2 version of this file looks like. (That
might shed some light on the above warnings too). It would also be
interesting to know what "man 2 shutdown" gives.
A quick google search suggests that the following might suffice as a hacky
workaround (although I'd much rather see it work properly):
#ifndef SHUT_RDWR
#define SHUT_RDWR 2
#endif
cheers,
Jon
--
====================== Jon Chambers =====================
http://www.jon.demon.co.uk, 020 8575 7097, 07931 961669
=========================================================
More information about the sane-devel
mailing list