# HG changeset patch # User Mike Becker # Date 1764514236 -3600 # Node ID 38d3f40a50ec1da816dace7f0ec932d05412b92b # Parent 6d65b1e971366d65e06b701e6e47e104d3107dc7 instead of including stdalign.h, check if the macro is defined (Solaris does not have the header) diff -r 6d65b1e97136 -r 38d3f40a50ec src/linked_list.c --- a/src/linked_list.c Sun Nov 30 15:45:35 2025 +0100 +++ b/src/linked_list.c Sun Nov 30 15:50:36 2025 +0100 @@ -30,8 +30,14 @@ #include "cx/compare.h" #include #include + #if __STDC_VERSION__ < 202311L -#include +// we cannot simply include stdalign.h +// because Solaris is not entirely C11 complaint +#ifndef __alignof_is_defined +#define alignof _Alignof +#define __alignof_is_defined 1 +#endif #endif // LOW LEVEL LINKED LIST FUNCTIONS