$NetBSD: patch-config.h.in,v 1.2 2024/02/25 15:13:59 wiz Exp $ Borrow upstream gnulib commit 0814a293: Make static_assert work on Solaris 11.4. --- config.h.in.orig 2024-02-24 13:05:34.000000000 +0000 +++ config.h.in @@ -2665,6 +2665,12 @@ && __GNUG__ < 6 && __clang_major__ < 6))) #include #undef/**/assert + /* Solaris 11.4 defines static_assert as a macro with 2 arguments. + We need it also to be invocable with a single argument. */ + #if defined __sun && (__STDC_VERSION__ - 0 >= 201112L) && !defined __cplusplus + #undef static_assert + #define static_assert _Static_assert + #endif #ifdef __sgi #undef/**/__ASSERT_H__ #endif