[sane-devel] SOLVED: scanimage and the net backend with cygwin

Henning Meier-Geinitz henning at meier-geinitz.de
Sat Feb 4 20:53:50 UTC 2006


Hi,

On 2006-01-28 13:02, Philip Aston wrote:
> Thanks to a pointer from Henning Meier-Geinitz and SANE_DEBUG_DLL,
> I now have sane built and the net backend working find under Cygwin.
> This required another patch.

Thanks for the patches.

> I guess "--enable-languages=c,ada,c++,d,f77,java,objc" is a hint
> ("interface" is a Java keyword). This is a standard gcc build from the
> cygwin distro, so I think my fix is reasonable.

But gcc shouldn't detect reserved words from other languages when it
compiles C. This would cause lots of other problems. Anyway, I renamed
interface to interface_number so this should be fixed.

> --- backend/dll.c.original      2006-01-28 12:24:08.857990400 +0000
> +++ backend/dll.c       2006-01-28 12:40:13.835560000 +0000
> @@ -108,6 +108,8 @@
>  
>  #if defined(HAVE_OS2_H)
>  # define DIR_SEP        ";"
> +#elif defined(__CYGWIN__)
> +# define DIR_SEP        ":"
>  #elif defined(HAVE_WINDOWS_H)
>  # define DIR_SEP        ";"
>  #else

Also applied in CVS. Is there any way to build on WIndows without
using cygwin? Otherwise the HAVE_WINDOWS_H test wouldn't make much
sense anymore.

> --- snapscan-usb.c.original	2006-01-23 12:14:59.012552000 +0000
> +++ snapscan-usb.c	2006-01-23 12:15:11.150004800 +0000

This one was already applied.

Bye,
  Henning



More information about the sane-devel mailing list