diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2004-05-24 23:25:46 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2004-05-24 23:25:46 +0000 |
commit | 5c99352dfbeb9820d299b5fa867b945b36064aa8 (patch) | |
tree | d32cd8f033628a07eeaad50bc386729b07b7dcf5 /net-misc/tightvnc/files | |
parent | Closing #51766. (diff) | |
download | historical-5c99352dfbeb9820d299b5fa867b945b36064aa8.tar.gz historical-5c99352dfbeb9820d299b5fa867b945b36064aa8.tar.bz2 historical-5c99352dfbeb9820d299b5fa867b945b36064aa8.zip |
Closing #51701.
Diffstat (limited to 'net-misc/tightvnc/files')
-rw-r--r-- | net-misc/tightvnc/files/tightvnc-4.0_linux-headers.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net-misc/tightvnc/files/tightvnc-4.0_linux-headers.patch b/net-misc/tightvnc/files/tightvnc-4.0_linux-headers.patch new file mode 100644 index 000000000000..5595d9fa0c02 --- /dev/null +++ b/net-misc/tightvnc/files/tightvnc-4.0_linux-headers.patch @@ -0,0 +1,43 @@ +--- programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c 2004/05/21 19:54:16 1.1 ++++ programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c 2004/05/21 19:58:29 +@@ -99,6 +99,14 @@ GetKbdLeds(InputInfoPtr pInfo) + #include <asm/kbio.h> + #endif + ++/* Deal with spurious kernel header change */ ++#include <linux/version.h> ++#if defined(LINUX_VERSION_CODE) && defined(KERNEL_VERSION) ++# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,42) ++# define rate period ++# endif ++#endif ++ + static int + KDKBDREP_ioctl_ok(int rate, int delay) { + #if defined(KDKBDREP) && !defined(__sparc__) +@@ -160,6 +168,14 @@ KIOCSRATE_ioctl_ok(int rate, int delay) + #endif /* KIOCSRATE */ + } + ++/* Deal with spurious kernel header change */ ++#include <linux/version.h> ++#if defined(LINUX_VERSION_CODE) && defined(KERNEL_VERSION) ++# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,42) ++# undef rate ++# endif ++#endif ++ + static void + SetKbdRepeat(InputInfoPtr pInfo, char rad) + { +--- programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c 2004/05/21 19:53:03 1.1 ++++ programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c 2004/05/21 19:55:24 +@@ -73,6 +73,7 @@ xf86GetKbdLeds() + #endif + + /* Deal with spurious kernel header change */ ++#include <linux/version.h> + #if defined(LINUX_VERSION_CODE) && defined(KERNEL_VERSION) + # if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,42) + # define rate period + |