]> git.pld-linux.org Git - packages/wl.git/blob - kernel-4.14.patch
- fix noarch package
[packages/wl.git] / kernel-4.14.patch
1 diff -urNp -x '*.orig' wl-6.30.223.271.org/src/shared/linux_osl.c wl-6.30.223.271/src/shared/linux_osl.c
2 --- wl-6.30.223.271.org/src/shared/linux_osl.c  2021-02-25 20:01:38.664328984 +0100
3 +++ wl-6.30.223.271/src/shared/linux_osl.c      2021-02-25 20:01:38.797662636 +0100
4 @@ -1063,7 +1063,11 @@ osl_os_get_image_block(char *buf, int le
5         if (!image)
6                 return 0;
7  
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
9 +       rdlen = kernel_read(fp, buf, len, &fp->f_pos);
10 +#else
11         rdlen = kernel_read(fp, fp->f_pos, buf, len);
12 +#endif
13         if (rdlen > 0)
14                 fp->f_pos += rdlen;
15  
This page took 0.094918 seconds and 3 git commands to generate.