debian/patches/vmalloc.patch
raw| 1 | Index: langford-0.0.20130228/langford.h |
| 2 | =================================================================== |
| 3 | --- langford-0.0.20130228.orig/langford.h |
| 4 | +++ langford-0.0.20130228/langford.h |
| 5 | @@ -17,6 +17,9 @@ |
| 6 | #include <linux/fs.h> |
| 7 | #include <linux/kthread.h> |
| 8 | #include <linux/version.h> |
| 9 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) |
| 10 | +#include <linux/vmalloc.h> |
| 11 | +#endif |
| 12 | #include <asm/uaccess.h> |
| 13 | #include "langford_ioctl.h" |
| 14 |