Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11671 Details for
Bug 17345
KBD structure name changed from 2.4.x to 2.5.x and 2.6.x causing XFree86 4.3.0 compile failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that fixes failure to compile X 4.3 on Linux 2.5 kernel includes
xf.patch (text/plain), 2.45 KB, created by
Blu3
on 2003-05-08 00:35:38 UTC
(
hide
)
Description:
Patch that fixes failure to compile X 4.3 on Linux 2.5 kernel includes
Filename:
MIME Type:
Creator:
Blu3
Created:
2003-05-08 00:35:38 UTC
Size:
2.45 KB
patch
obsolete
>--- lnx_io.c~ 2003-05-08 01:15:56.000000000 -0400 >+++ lnx_io.c 2003-05-08 01:15:56.000000000 -0400 >@@ -87,7 +87,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; >@@ -95,11 +95,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; >@@ -124,10 +124,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; >--- lnx_kbd.c~ 2003-05-08 01:16:08.000000000 -0400 >+++ lnx_kbd.c 2003-05-08 01:16:08.000000000 -0400 >@@ -107,7 +107,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; >@@ -115,11 +115,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; >@@ -144,10 +144,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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17345
: 11671