Make lirc compile w/ 2.6.27 kernels
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14001 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
11f7379f28
commit
b8f2be5466
15
utils/lirc/patches/110-semaphore_include.patch
Normal file
15
utils/lirc/patches/110-semaphore_include.patch
Normal file
@ -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 <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
|
Loading…
x
Reference in New Issue
Block a user