From: Mike Gilbert Date: Thu, 9 Dec 2021 20:26:33 +0000 (-0500) Subject: shared: avoid x86_64-specific size assertion on x32 X-Git-Tag: v250-rc3~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc78edccc7cca531474c4ee52e56eb3de5a84c3;p=thirdparty%2Fsystemd.git shared: avoid x86_64-specific size assertion on x32 Fixes: https://github.com/systemd/systemd/issues/21713 --- diff --git a/src/shared/json.c b/src/shared/json.c index 0f862794327..dff95eda265 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