]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: avoid x86_64-specific size assertion on x32
authorMike Gilbert <floppym@gentoo.org>
Thu, 9 Dec 2021 20:26:33 +0000 (15:26 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Dec 2021 06:26:18 +0000 (07:26 +0100)
Fixes: https://github.com/systemd/systemd/issues/21713
src/shared/json.c

index 0f862794327d47929487b2099eba0af6eb3bd3c9..dff95eda2655d2aa0352e47ce3d6877c10da4522 100644 (file)
@@ -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