From 0860b02840ba154ab4dc34f3b229873237132de8 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 23 Dec 2024 14:03:11 +0800 Subject: [PATCH] xr_usb_serial_common: fix build with linux 6.12 --- .../patches/0002-fix-kernel-6.12-builds.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libs/xr_usb_serial_common/patches/0002-fix-kernel-6.12-builds.patch diff --git a/libs/xr_usb_serial_common/patches/0002-fix-kernel-6.12-builds.patch b/libs/xr_usb_serial_common/patches/0002-fix-kernel-6.12-builds.patch new file mode 100644 index 00000000..64c1b591 --- /dev/null +++ b/libs/xr_usb_serial_common/patches/0002-fix-kernel-6.12-builds.patch @@ -0,0 +1,17 @@ +--- 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 + #include + #include +-#include + #include + #include "linux/version.h" ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) ++#include ++#else ++#include ++#endif + + #include "xr_usb_serial_common.h" + #include "xr_usb_serial_ioctl.h"