diff options
author | reztho | 2017-07-29 21:07:13 +0100 |
---|---|---|
committer | reztho | 2017-07-29 21:07:13 +0100 |
commit | ddd6a79b2fcf4bbfb212480aeb4edc3dc9d50042 (patch) | |
tree | ff484073fbba890e3f5cebeb401c3684d8c3d59c /kernel412.patch | |
parent | 3b77d27e4d779af8aa9da5f793948950803f83e4 (diff) | |
download | aur-ddd6a79b2fcf4bbfb212480aeb4edc3dc9d50042.tar.gz |
Fix for kernel 4.12 (Thanks to jihem)
Diffstat (limited to 'kernel412.patch')
-rw-r--r-- | kernel412.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel412.patch b/kernel412.patch new file mode 100644 index 000000000000..ba15f6f80f1b --- /dev/null +++ b/kernel412.patch @@ -0,0 +1,13 @@ +diff -ruN frandom-1.1/frandom.c frandom-1.1-patched/frandom.c +--- frandom-1.1/frandom.c 2011-07-27 23:14:14.000000000 +0100 ++++ frandom-1.1-patched/frandom.c 2017-07-29 20:56:05.891476396 +0100 +@@ -26,6 +26,9 @@ + #include <linux/random.h> + + #include <asm/uaccess.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) ++#include <linux/uaccess.h> ++#endif + #include <linux/cdev.h> + #include <linux/err.h> + #include <linux/device.h> |