Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 16 lines 408 B view raw
1diff --git a/ch9344.c b/ch9344.c 2index 8130334..b017faa 100644 3--- a/ch9344.c 4+++ b/ch9344.c 5@@ -62,7 +62,11 @@ 6 #include <linux/timer.h> 7 #include <linux/kfifo.h> 8 #include <asm/byteorder.h> 9+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0)) 10+#include <linux/unaligned.h> 11+#else 12 #include <asm/unaligned.h> 13+#endif 14 15 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) 16 #include <linux/sched/signal.h>