]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Fix data model detection for ARM
authorJan Janssen <medhefgo@web.de>
Mon, 27 Feb 2023 14:58:42 +0000 (15:58 +0100)
committerJan Janssen <medhefgo@web.de>
Tue, 28 Feb 2023 13:37:05 +0000 (14:37 +0100)
For whatever reason, ARM does not define __ILP32__.

src/boot/efi/efi-string.h

index 410bfd8ef5e5dff11379ee62e72534d2b9f0bf2b..4df37a85054d174d7c174aad15207312b49b89d3 100644 (file)
@@ -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"