From 95142492b9805f1c9d6f83cd8f2f96a92dffb5e1 Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Mon, 6 Apr 2026 00:46:32 +0200 Subject: [PATCH] kernel/util: fix gcc2 build * Failed with parse error. Change-Id: I67f5f80768ccc25069ac9c33e300347f835e8d83 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10669 Reviewed-by: waddlesplash Reviewed-by: Kacper Kasper --- src/system/kernel/util/list.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/kernel/util/list.cpp b/src/system/kernel/util/list.cpp index 215a249d4e..12d65af44a 100644 --- a/src/system/kernel/util/list.cpp +++ b/src/system/kernel/util/list.cpp @@ -8,13 +8,17 @@ #include #include +#include + #define GET_ITEM(list, item) ({ BytePointer pointer((uint8*)item \ - list->offset); &pointer; }) #define GET_LINK(list, item) ({ BytePointer pointer((uint8*)item \ + list->offset); &pointer; }) +#if __GNUC__ > 2 STATIC_ASSERT(sizeof(DoublyLinkedListLink) == sizeof(list_link)); +#endif /** Initializes the list with a specified offset to the link