1From fb39f9600d464ce761917c0e787b940097f6024c Mon Sep 17 00:00:00 2001
2From: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
3Date: Thu, 23 Jun 2022 16:52:49 +0200
4Subject: [PATCH] shm.c: use _Static_assert instead of static_assert for uclibc
5
6Both are C11 constructs.  The first one is defined by the compiler in
7gnu11 mode, but the second one should be a macro defined in assert.h
8
9The macro exists in glibc >= 2.16 and musl >= 1.1.10 but not in
10uclibc 1.0.41.  It is expected to be present in uclibc 1.0.42.
11
12Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
13---
14 src/pulsecore/shm.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c
18index e464f6bce..5220cc90d 100644
19--- a/src/pulsecore/shm.c
20+++ b/src/pulsecore/shm.c
21@@ -94,7 +94,7 @@ struct shm_marker {
22 };
23
24 // Ensure struct is appropriately packed
25-static_assert(sizeof(struct shm_marker) == 8 * 5, "`struct shm_marker` is not tightly packed");
26+_Static_assert(sizeof(struct shm_marker) == 8 * 5, "`struct shm_marker` is not tightly packed");
27
28 static inline size_t shm_marker_size(pa_mem_type_t type) {
29     if (type == PA_MEM_TYPE_SHARED_POSIX)
30--
312.36.1
32
33