1 --- xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c.orig 2004-02-16 18:25:42.000000000 +0100
2 +++ xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c 2004-02-16 18:29:53.875110184 +0100
7 -KDKBDREP_ioctl_ok(int rate, int delay) {
8 +KDKBDREP_ioctl_ok(int fd, int rate, int delay) {
9 #if defined(KDKBDREP) && !defined(__sparc__)
10 /* This ioctl is defined in <linux/kd.h> but is not
11 implemented anywhere - must be in some m68k patches. */
13 /* don't change, just test */
16 - if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
17 + if (ioctl( fd, KDKBDREP, &kbdrep_s )) {
22 if (kbdrep_s.delay < 1)
25 - if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
26 + if (ioctl( fd, KDKBDREP, &kbdrep_s )) {
34 - if(KDKBDREP_ioctl_ok(rate, delay)) /* m68k? */
35 + if(KDKBDREP_ioctl_ok(pInfo->fd, rate, delay)) /* m68k? */
38 if(KIOCSRATE_ioctl_ok(rate, delay)) /* sparc? */