mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
085fc4cb82
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
14 lines
437 B
Diff
14 lines
437 B
Diff
--- a/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:04:39.000000000 -0400
|
|
+++ b/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:19:06.000000000 -0400
|
|
@@ -1050,7 +1050,11 @@
|
|
goto new_irctl_failure_check;
|
|
}
|
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38)
|
|
if (lirc_buffer_init(driver->rbuf, dclen, 1)) {
|
|
+#else
|
|
+ if (lirc_buffer_init(driver->rbuf, dclen, 2)) {
|
|
+#endif
|
|
mem_failure = 4;
|
|
goto new_irctl_failure_check;
|
|
}
|