From 5643997439f6c0a49fab47b1de377e9be268b169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Fri, 13 Mar 2026 04:56:48 +0100 Subject: [PATCH] exec/helper-head: Include missing 'exec/target_long.h' header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TARGET_LONG_BITS is defined in "exec/target_long.h" (which is currently included implicitly by various headers). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Message-Id: <20260313062055.2188-19-philmd@linaro.org> --- include/exec/helper-head.h.inc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/exec/helper-head.h.inc b/include/exec/helper-head.h.inc index 5b248fd713..7dec5f5b06 100644 --- a/include/exec/helper-head.h.inc +++ b/include/exec/helper-head.h.inc @@ -46,14 +46,13 @@ #define dh_ctype(t) dh_ctype_##t #ifdef COMPILING_PER_TARGET -# ifdef TARGET_LONG_BITS -# if TARGET_LONG_BITS == 32 -# define dh_alias_tl i32 -# define dh_typecode_tl dh_typecode_i32 -# else -# define dh_alias_tl i64 -# define dh_typecode_tl dh_typecode_i64 -# endif +# include "exec/target_long.h" +# if TARGET_LONG_BITS == 32 +# define dh_alias_tl i32 +# define dh_typecode_tl dh_typecode_i32 +# else +# define dh_alias_tl i64 +# define dh_typecode_tl dh_typecode_i64 # endif # define dh_ctype_tl target_ulong #endif /* COMPILING_PER_TARGET */