Fixed undefined symbols in the qcam backend on GNU/kFreeBSD (patch from Aurelien

Jarno <aurelien@aurel32.net>).
merge-requests/1/head
Henning Geinitz 2006-04-09 15:11:06 +00:00
rodzic 2f6ae4a1b3
commit f05f4777f5
2 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -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)