diff --git a/drivers/linux/ch34x.c b/drivers/linux/ch34x.c index 2fcf7f0..f4a4943 100755 --- a/drivers/linux/ch34x.c +++ b/drivers/linux/ch34x.c @@ -14,7 +14,11 @@ #ifndef KERNEL_VERSION #define KERNEL_VERSION(ver, rel, seq) ((ver << 16) | (rel << 8) | (seq)) #endif - +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0) +#include +#else +#include +#endif #include #include #include @@ -588,7 +592,7 @@ static void ch34x_close( struct usb_serial_port *port, unsigned int c_cflag; int bps; long timeout; - wait_queue_t wait; + wait_queue_entry_t wait; #if(LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0)) dbg_ch34x("%s - port:%d", __func__, port->number);