[packages] libs/libmpcdec: use fixed-point math
[openwrt/svn-archive/archive.git] / utils / lirc / patches / 110-semaphore_include.patch
1 diff -urN lirc-0.8.3/drivers/lirc_dev/lirc_dev.c lirc-0.8.3.new/drivers/lirc_dev/lirc_dev.c
2 --- lirc-0.8.3/drivers/lirc_dev/lirc_dev.c 2008-01-13 11:45:02.000000000 +0100
3 +++ lirc-0.8.3.new/drivers/lirc_dev/lirc_dev.c 2009-01-13 00:23:56.000000000 +0100
4 @@ -49,7 +49,11 @@
5 #include <linux/uaccess.h>
6 #include <linux/errno.h>
7 #endif
8 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
9 #include <asm/semaphore.h>
10 +#else
11 +#include <linux/semaphore.h>
12 +#endif
13 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
14 #include <linux/wrapper.h>
15 #endif