diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-12-09 15:26:33 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-12-10 07:26:18 +0100 |
commit | 9dc78edccc7cca531474c4ee52e56eb3de5a84c3 (patch) | |
tree | 49e3c1e24790e28c0d152e0c6b7cf393266ff39c /src/shared/json.c | |
parent | e67a5c14f0345f5ac456cfa109324dd9e70114d3 (diff) | |
download | systemd-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.c | 2 |
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 |