From: William Cohen Date: Mon, 7 Oct 2024 15:27:10 +0000 (-0400) Subject: Address the Linux 6.12 move of the unaligned.h include file X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=c5774e18b7241cc484ef9d5e17214651b9b9d439;p=systemtap.git Address the Linux 6.12 move of the unaligned.h include file The Linux git commit 5f60d5f6bb moved unaligned.h from asm/unaligned.h to linux/unaligned.h. Adjusted runtime/sym.c to include the unaligned.h from the appropriate location. --- diff --git a/runtime/sym.c b/runtime/sym.c index 102257965..acae95818 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -18,7 +18,11 @@ #ifdef STP_NEED_LINE_DATA #include "unwind/unwind.h" #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0) +#include +#else #include +#endif #include #include #include