]> git.pld-linux.org Git - packages/XFree86-Servers.git/commitdiff
- patch with rate to period name change to fix build with new llh
authorundefine <undefine@pld-linux.org>
Wed, 1 Sep 2004 00:51:49 +0000 (00:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    XFree86-Servers-period.patch -> 1.1

XFree86-Servers-period.patch [new file with mode: 0644]

diff --git a/XFree86-Servers-period.patch b/XFree86-Servers-period.patch
new file mode 100644 (file)
index 0000000..5a80837
--- /dev/null
@@ -0,0 +1,41 @@
+--- XFree86-Servers-3.3.6/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c~    2000-01-08 19:26:25.000000000 +0100
++++ XFree86-Servers-3.3.6/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c     2004-09-01 02:11:22.413163720 +0200
+@@ -82,7 +82,7 @@
+    struct kbd_repeat kbdrep_s;
+    /* don't change, just test */
+-   kbdrep_s.rate = -1;
++   kbdrep_s.period = -1;
+    kbdrep_s.delay = -1;
+    if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
+        return 0;
+@@ -90,11 +90,11 @@
+    /* do the change */
+    if (rate == 0)                             /* switch repeat off */
+-     kbdrep_s.rate = 0;
++     kbdrep_s.period = 0;
+    else
+-     kbdrep_s.rate  = 10000 / rate;           /* convert cps to msec */
+-   if (kbdrep_s.rate < 1)
+-     kbdrep_s.rate = 1;
++     kbdrep_s.period  = 10000 / rate;         /* convert cps to msec */
++   if (kbdrep_s.period < 1)
++     kbdrep_s.period = 1;
+    kbdrep_s.delay = delay;
+    if (kbdrep_s.delay < 1)
+      kbdrep_s.delay = 1;
+@@ -120,10 +120,10 @@
+    if (fd == -1) 
+      return 0;   
+-   kbdrate_s.rate = (rate + 5) / 10;     /* must be integer, so round up */
++   kbdrate_s.period = (rate + 5) / 10;     /* must be integer, so round up */
+    kbdrate_s.delay = delay * HZ / 1000;  /* convert ms to Hz */
+-   if (kbdrate_s.rate > 50)
+-     kbdrate_s.rate = 50;
++   if (kbdrate_s.period > 50)
++     kbdrate_s.period = 50;
+    if (ioctl( fd, KIOCSRATE, &kbdrate_s ))
+      return 0;
This page took 0.055676 seconds and 4 git commands to generate.