mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
dmx_usb_module: fix build against kernel 4.14
The change should also work fine with older kernels, as <linux/uaccess.h> has existed for a long time, and it includes <asm/uaccess.h>. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
|
|
||||||
PKG_NAME:=dmx_usb_module
|
PKG_NAME:=dmx_usb_module
|
||||||
PKG_VERSION:=0.1.20130818
|
PKG_VERSION:=0.1.20130818
|
||||||
PKG_RELEASE:=0.1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|||||||
11
libs/dmx_usb_module/patches/002-fix-build-4.14.patch
Normal file
11
libs/dmx_usb_module/patches/002-fix-build-4.14.patch
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/dmx_usb.c
|
||||||
|
+++ b/dmx_usb.c
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/spinlock.h>
|
||||||
|
#include <linux/completion.h>
|
||||||
|
-#include <asm/uaccess.h>
|
||||||
|
+#include <linux/uaccess.h>
|
||||||
|
#include <linux/usb.h>
|
||||||
|
#include <linux/version.h>
|
||||||
|
|
||||||
Reference in New Issue
Block a user