[sane-devel] Compiling the Plustek backend on OS/2

Franz Bakan fbakan at gmx.net
Mon Apr 1 19:02:38 BST 2002


On Fri, 29 Mar 2002 18:39:23 +0100, Jaeger, Gerhard wrote:

Hi Gerhard,

>AFAIR you had a problem with the Plustek backend
>on OS/2, can you please send me the workaround
>so I'm able to include that to our CVS here?

changing plustek.c to:

#ifndef HAVE_OS2_H
/* might be used to disable all USB stuff */
#define _PLUSTEK_USB
#else
#define _E_ALLOC            -9611
struct	itimerval {
	struct	timeval it_interval;	/* timer interval */
	struct	timeval it_value;		/* current value */
};
#endif

works here but probably it is better to move line 171 in plustek.h

	struct itimerval       saveSettings;     /* for lamp timer               */

into the 

#ifdef _PLUSTEK_USB   - block (line 176)

and add

#define _E_ALLOC            -9611

to plustek-pp.c

With these changes we only need

#ifndef HAVE_OS2_H
/* might be used to disable all USB stuff */
#define _PLUSTEK_USB
#endif

in plustek.c

to get the code compiled on OS/2 again.

Bye,
Franz





More information about the sane-devel mailing list