I can't compile sanei_tcp.c under cygwin. function sanei_tcp_read() is using MSG_WAITALL that is undefined on this platform
possible workaround : add the define MSG_WAITALL if __CYGWIN__ is defined is this the right solution ? any other ideas ? diff from cvs source tree =================================================================== RCS file: /cvsroot/sane/sane-backends/sanei/sanei_tcp.c,v retrieving revision 1.3 diff -u -r1.3 sanei_tcp.c --- sanei/sanei_tcp.c 20 Jan 2007 20:59:05 -0000 1.3 +++ sanei/sanei_tcp.c 11 Oct 2007 09:31:24 -0000 @@ -46,7 +46,16 @@ #include <stdlib.h> #include <string.h> -#include <sys/socket.h> +#ifdef HAVE_SYS_SOCKET_H +# include <sys/socket.h> +#endif /* HAVE_SYS_SOCKET_H */ + +#if defined(OS_WIN32) && !defined(MSG_WAITALL) +# define MSG_WAITALL 0x08 +#endif /* OS_WIN32 && !MSG_WAITALL */ +#if defined(__CYGWIN__) +# define MSG_WAITALL 0x08 +#endif /* __CYGWIN__ */