From: Mathieu Desnoyers Date: Thu, 25 Nov 2021 21:02:29 +0000 (-0500) Subject: Fix: static_assert unavailable with glibc < 2.16 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=89350fda665ceeba49bb7dbabe3ce68e4aa5040d;hp=89350fda665ceeba49bb7dbabe3ce68e4aa5040d;p=lttng-ust.git Fix: static_assert unavailable with glibc < 2.16 gcc 4.8 introduces support for C11, and gcc 4.6 introduces support for _Static_assert. Therefore, using _Static_assert when C11 is detected is always OK. However, using static_assert in C11 depends on glibc >= 2.16. Even though the minimum version requirement for glibc is not documented in the README.md file, make a best effort to keep compatibility with older glibc. Fixes: #1331 Signed-off-by: Mathieu Desnoyers Change-Id: I33b65b839ea5ecd0f710179a7ef6fb6f5fda2e17 ---