summaryrefslogtreecommitdiff
path: root/src/shared/json.c
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-12-09 15:26:33 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-10 07:26:18 +0100
commit9dc78edccc7cca531474c4ee52e56eb3de5a84c3 (patch)
tree49e3c1e24790e28c0d152e0c6b7cf393266ff39c /src/shared/json.c
parente67a5c14f0345f5ac456cfa109324dd9e70114d3 (diff)
downloadsystemd-9dc78edccc7cca531474c4ee52e56eb3de5a84c3.tar.gz
shared: avoid x86_64-specific size assertion on x32
Fixes: https://github.com/systemd/systemd/issues/21713
Diffstat (limited to 'src/shared/json.c')
-rw-r--r--src/shared/json.c2
1 files changed, 1 insertions, 1 deletions
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