d3bd246257
- added patch pcfclock-linux-4.12.patch to fix build with kernel 4.12 include linux/uaccess.h instead of asm/uaccess.h starting with linux kernel version 4.12 OBS-URL: https://build.opensuse.org/request/show/523244 OBS-URL: https://build.opensuse.org/package/show/network:time/pcfclock?expand=0&rev=7
15 lines
348 B
Diff
15 lines
348 B
Diff
--- linux/pcfclock.c 2017-09-11 15:57:45.230073000 +0200
|
|
+++ linux/pcfclock.c 2017-09-11 15:58:29.134762000 +0200
|
|
@@ -59,7 +59,11 @@
|
|
#include <linux/device.h>
|
|
#endif
|
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0)
|
|
+#include <linux/uaccess.h>
|
|
+#else
|
|
#include <asm/uaccess.h>
|
|
+#endif
|
|
#include <linux/semaphore.h>
|
|
|
|
/* Major device number */
|