kopia lustrzana https://gitlab.com/sane-project/backends
Fixed undefined symbols in the qcam backend on GNU/kFreeBSD (patch from Aurelien
Jarno <aurelien@aurel32.net>).merge-requests/1/head
rodzic
2f6ae4a1b3
commit
f05f4777f5
|
@ -7,6 +7,8 @@
|
|||
#303338).
|
||||
* doc/descriptions/umax1220u.desc: Added links to Patrick
|
||||
Lessard's patch.
|
||||
* backend/qcam.c: Fixed undefined symbols in the qcam backend on
|
||||
GNU/kFreeBSD (patch from Aurelien Jarno <aurelien@aurel32.net>).
|
||||
|
||||
2006-04-03 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
|
|
|
@ -193,23 +193,24 @@ static const SANE_Range odd_bw_x_range = { 1, 335, 2 };
|
|||
static const SANE_Range bw_y_range = { 0, 241, 1 };
|
||||
static const SANE_Range odd_bw_y_range = { 1, 242, 1 };
|
||||
|
||||
#if defined(__linux__) || defined (HAVE_SYS_HW_H)
|
||||
#if defined(HAVE_SYS_IO_H) || defined(HAVE_ASM_IO_H) || defined (HAVE_SYS_HW_H)
|
||||
|
||||
#ifdef HAVE_SYS_IO_H
|
||||
# include <sys/io.h> /* GNU libc based Linux */
|
||||
# include <sys/io.h> /* GNU libc based OS */
|
||||
#elif HAVE_ASM_IO_H
|
||||
# include <asm/io.h> /* older Linux */
|
||||
#elif HAVE_SYS_HW_H
|
||||
# include <sys/hw.h> /* OS/2 */
|
||||
#endif
|
||||
|
||||
#endif /* <sys/io.h> || <asm/io.h> || <sys/hw.h> */
|
||||
|
||||
#define read_lpdata(d) inb ((d)->port)
|
||||
#define read_lpstatus(d) inb ((d)->port + 1)
|
||||
#define read_lpcontrol(d) inb ((d)->port + 2)
|
||||
#define write_lpdata(d,v) outb ((v), (d)->port)
|
||||
#define write_lpcontrol(d,v) outb ((v), (d)->port + 2)
|
||||
|
||||
#endif /* __linux__ */
|
||||
|
||||
static SANE_Status
|
||||
enable_ports (QC_Device * q)
|
||||
|
|
Ładowanie…
Reference in New Issue