From: Florian Fainelli Date: Mon, 12 Jan 2009 23:26:24 +0000 (+0000) Subject: Make lirc compile w/ 2.6.27 kernels X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fecb8e56ee39990ef7dc6225f64574cfa3309f61;p=openwrt%2Fsvn-archive%2Fpackages.git Make lirc compile w/ 2.6.27 kernels SVN-Revision: 14001 --- diff --git a/utils/lirc/patches/110-semaphore_include.patch b/utils/lirc/patches/110-semaphore_include.patch new file mode 100644 index 000000000..ae322bb92 --- /dev/null +++ b/utils/lirc/patches/110-semaphore_include.patch @@ -0,0 +1,15 @@ +diff -urN lirc-0.8.3/drivers/lirc_dev/lirc_dev.c lirc-0.8.3.new/drivers/lirc_dev/lirc_dev.c +--- lirc-0.8.3/drivers/lirc_dev/lirc_dev.c 2008-01-13 11:45:02.000000000 +0100 ++++ lirc-0.8.3.new/drivers/lirc_dev/lirc_dev.c 2009-01-13 00:23:56.000000000 +0100 +@@ -49,7 +49,11 @@ + #include + #include + #endif ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) + #include ++#else ++#include ++#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) + #include + #endif