From 9dc78edccc7cca531474c4ee52e56eb3de5a84c3 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Thu, 9 Dec 2021 15:26:33 -0500 Subject: [PATCH] shared: avoid x86_64-specific size assertion on x32 Fixes: https://github.com/systemd/systemd/issues/21713 --- src/shared/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/json.c b/src/shared/json.c index 0f86279432..dff95eda26 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -121,7 +121,7 @@ struct JsonVariant { /* Let's make sure this structure isn't increased in size accidentally. This check is only for our most relevant arch * (x86-64). */ -#ifdef __x86_64__ +#if defined(__x86_64__) && __SIZEOF_POINTER__ == 8 assert_cc(sizeof(JsonVariant) == 40U); assert_cc(INLINE_STRING_MAX == 7U); #endif