From 511b35866a8af69998f37be3b67859daddf5824e Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Fri, 16 Jun 2023 15:54:29 +0000 Subject: [PATCH] ifnet: fix if_strings.h build check --- sys/net/if_strings.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/if_strings.h b/sys/net/if_strings.h index 95d85f5370e..bea15cfa9de 100644 --- a/sys/net/if_strings.h +++ b/sys/net/if_strings.h @@ -100,7 +100,10 @@ static const char *ifcap_bit_names[] = { IFCAP_RXTLS4_NAME, IFCAP_RXTLS6_NAME, }; + +#ifdef IFCAP_B_SIZE _Static_assert(sizeof(ifcap_bit_names) >= IFCAP_B_SIZE * sizeof(char *), "ifcap bit names missing from ifcap_bit_names"); +#endif #endif