5a4e793355
- added patch pcfclock-linux-3.19.patch fix build with kernel 3.19 use file_inode to get inode from file pointer - fix build on 11.4 (skip installing tmpfile config) OBS-URL: https://build.opensuse.org/request/show/288022 OBS-URL: https://build.opensuse.org/package/show/network:time/pcfclock?expand=0&rev=5
15 lines
426 B
Diff
15 lines
426 B
Diff
--- linux/pcfclock.c
|
|
+++ linux/pcfclock.c
|
|
@@ -269,7 +269,11 @@
|
|
int rc;
|
|
int try;
|
|
char buf1[18], buf2[18];
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
|
|
unsigned int minor = iminor(filp->f_dentry->d_inode);
|
|
+#else
|
|
+ unsigned int minor = iminor(file_inode(filp));
|
|
+#endif
|
|
struct pcfclock_struct *pcfclock = &pcfclock_table[minor];
|
|
struct pcfclock_status *status = (struct pcfclock_status *) &filp->private_data;
|
|
|