From d14eb24925362e30a1f362e99c93a127757aa471 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 27 Feb 2023 15:58:42 +0100 Subject: [PATCH] boot: Fix data model detection for ARM For whatever reason, ARM does not define __ILP32__. --- src/boot/efi/efi-string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/efi/efi-string.h b/src/boot/efi/efi-string.h index 410bfd8ef5..4df37a8505 100644 --- a/src/boot/efi/efi-string.h +++ b/src/boot/efi/efi-string.h @@ -126,7 +126,7 @@ _gnu_printf_(2, 0) _warn_unused_result_ char16_t *xvasprintf_status(EFI_STATUS s /* inttypes.h is provided by libc instead of the compiler and is not supposed to be used in freestanding * environments. We could use clang __*_FMT*__ constants for this, bug gcc does not have them. :( */ -# if defined(__ILP32__) +# if defined(__ILP32__) || defined(__arm__) # define PRI64_PREFIX "ll" # elif defined(__LP64__) # define PRI64_PREFIX "l"