Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 36535
Collapse All | Expand All

(-)xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c.orig (+11 lines)
Lines 93-103 Link Here
93
/* kbd rate stuff based on kbdrate.c from Rik Faith <faith@cs.unc.edu> et.al.
93
/* kbd rate stuff based on kbdrate.c from Rik Faith <faith@cs.unc.edu> et.al.
94
 * from util-linux-2.9t package */
94
 * from util-linux-2.9t package */
95
95
96
#include <linux/kd.h>
97
#include <linux/version.h>
96
#ifdef __sparc__
98
#ifdef __sparc__
97
#include <asm/param.h>
99
#include <asm/param.h>
98
#include <asm/kbio.h>
100
#include <asm/kbio.h>
99
#endif
101
#endif
100
102
103
/* Deal with spurious kernel header change */
104
#if defined(LINUX_VERSION_CODE) && defined(KERNEL_VERSION)
105
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,42)
106
#  define rate period
107
# endif
108
#endif
109
                                                                                
101
static int
110
static int
102
KDKBDREP_ioctl_ok(int rate, int delay) {
111
KDKBDREP_ioctl_ok(int rate, int delay) {
103
#if defined(KDKBDREP) && !defined(__sparc__)
112
#if defined(KDKBDREP) && !defined(__sparc__)
Lines 159-164 Link Here
159
#endif /* KIOCSRATE */
168
#endif /* KIOCSRATE */
160
}
169
}
161
170
171
#undef rate
172
162
static void
173
static void
163
SetKbdRepeat(InputInfoPtr pInfo, char rad)
174
SetKbdRepeat(InputInfoPtr pInfo, char rad)
164
{
175
{
(-)xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c.orig (+1 lines)
Lines 67-72 Link Here
67
 * from util-linux-2.9t package */
67
 * from util-linux-2.9t package */
68
68
69
#include <linux/kd.h>
69
#include <linux/kd.h>
70
#include <linux/version.h>
70
#ifdef __sparc__
71
#ifdef __sparc__
71
#include <asm/param.h>
72
#include <asm/param.h>
72
#include <asm/kbio.h>
73
#include <asm/kbio.h>

Return to bug 36535