diff options
author | Thomas Anderson <gentoofan23@gentoo.org> | 2008-12-25 13:30:55 +0000 |
---|---|---|
committer | Thomas Anderson <gentoofan23@gentoo.org> | 2008-12-25 13:30:55 +0000 |
commit | e64cb6bda16783ae20f9b4aacfb9914be12a4b03 (patch) | |
tree | 72cccd1dcb3fb7e94d327dc8f413c5d637053d98 /app-misc/lirc/files | |
parent | Stable on alpha, bug #251159 (diff) | |
download | gentoo-2-e64cb6bda16783ae20f9b4aacfb9914be12a4b03.tar.gz gentoo-2-e64cb6bda16783ae20f9b4aacfb9914be12a4b03.tar.bz2 gentoo-2-e64cb6bda16783ae20f9b4aacfb9914be12a4b03.zip |
Add Kernel 2.6.27 compatibility to lirc-0.8.3-r2. Fixes bug #236713, thanks to James <cctsurf at gmail dot com> for the patch. Committed with permission of beandog
(Portage version: 2.1.6.1/cvs/Linux 2.6.25.9 x86_64)
Diffstat (limited to 'app-misc/lirc/files')
-rw-r--r-- | app-misc/lirc/files/lirc-0.8.3-kernel-2.6.27.diff | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-misc/lirc/files/lirc-0.8.3-kernel-2.6.27.diff b/app-misc/lirc/files/lirc-0.8.3-kernel-2.6.27.diff new file mode 100644 index 000000000000..c9149737100c --- /dev/null +++ b/app-misc/lirc/files/lirc-0.8.3-kernel-2.6.27.diff @@ -0,0 +1,38 @@ +Index: drivers/lirc_dev/lirc_dev.c +=================================================================== +RCS file: /cvsroot/lirc/lirc/drivers/lirc_dev/lirc_dev.c,v +retrieving revision 1.58 +diff -u -p -u -p -r1.58 lirc_dev.c +--- drivers/lirc_dev/lirc_dev.c 14 May 2008 16:37:49 -0000 1.58 ++++ drivers/lirc_dev/lirc_dev.c 4 Aug 2008 14:54:04 -0000 +@@ -49,7 +49,11 @@ + #include <linux/uaccess.h> + #include <linux/errno.h> + #endif ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) + #include <asm/semaphore.h> ++#else ++#include <linux/semaphore.h> ++#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) + #include <linux/wrapper.h> + #endif +Index: drivers/lirc_i2c/lirc_i2c.c +=================================================================== +RCS file: /cvsroot/lirc/lirc/drivers/lirc_i2c/lirc_i2c.c,v +retrieving revision 1.46 +diff -u -p -u -p -r1.46 lirc_i2c.c +--- drivers/lirc_i2c/lirc_i2c.c 4 May 2008 13:49:53 -0000 1.46 ++++ drivers/lirc_i2c/lirc_i2c.c 4 Aug 2008 14:54:04 -0000 +@@ -54,7 +54,11 @@ + #include <linux/i2c.h> + #include <linux/i2c-algo-bit.h> + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) + #include <asm/semaphore.h> ++#else ++#include <linux/semaphore.h> ++#endif + + #include "drivers/kcompat.h" + #include "drivers/lirc_dev/lirc_dev.h" |