mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 04:51:19 +08:00
18 lines
482 B
Diff
18 lines
482 B
Diff
--- a/xr_usb_serial_common-1a/xr_usb_serial_common.c
|
|
+++ b/xr_usb_serial_common-1a/xr_usb_serial_common.c
|
|
@@ -48,9 +48,13 @@
|
|
#include <linux/usb.h>
|
|
#include <linux/usb/cdc.h>
|
|
#include <asm/byteorder.h>
|
|
-#include <asm/unaligned.h>
|
|
#include <linux/list.h>
|
|
#include "linux/version.h"
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0)
|
|
+#include <linux/unaligned.h>
|
|
+#else
|
|
+#include <asm/unaligned.h>
|
|
+#endif
|
|
|
|
#include "xr_usb_serial_common.h"
|
|
#include "xr_usb_serial_ioctl.h"
|